[FFmpeg-devel] [PATCH 1/2] lavu: add a gamma field to AVMasteringDisplayMetadata
Rostislav Pehlivanov
atomnuker at gmail.com
Wed Sep 20 06:00:27 EEST 2017
PNG exposes it and its required in order to correctly display some images,
particularly images crafted to contain 2 different images which appear
differently depending on whether the gamma has been taken into account.
Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
---
libavutil/mastering_display_metadata.h | 10 ++++++++++
libavutil/version.h | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/libavutil/mastering_display_metadata.h b/libavutil/mastering_display_metadata.h
index 847b0b62c6..3de58bf468 100644
--- a/libavutil/mastering_display_metadata.h
+++ b/libavutil/mastering_display_metadata.h
@@ -66,6 +66,16 @@ typedef struct AVMasteringDisplayMetadata {
*/
int has_luminance;
+ /**
+ * The power-law response exponent needed to compensate for nonlinearity.
+ */
+ AVRational gamma;
+
+ /**
+ * Flag indicating whether the gamma has been set.
+ */
+ int has_gamma;
+
} AVMasteringDisplayMetadata;
/**
diff --git a/libavutil/version.h b/libavutil/version.h
index d99eff5d15..8ac41f49f5 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -80,7 +80,7 @@
#define LIBAVUTIL_VERSION_MAJOR 55
-#define LIBAVUTIL_VERSION_MINOR 75
+#define LIBAVUTIL_VERSION_MINOR 76
#define LIBAVUTIL_VERSION_MICRO 100
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
--
2.14.1.821.g8fa685d3b7
More information about the ffmpeg-devel
mailing list