summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-06-10 14:02:55 +0200
committerwm4 <wm4@nowhere>2017-06-18 20:54:44 +0200
commitdeb93707791092e608b1e5f8f1d1773b0057ce59 (patch)
tree0b6c2e37a105b1bf51ccebd96818c6d25422c6d9 /wscript
parentc335e84230916d7d7a38288031516e8b2ec1c36b (diff)
downloadmpv-deb93707791092e608b1e5f8f1d1773b0057ce59.tar.bz2
mpv-deb93707791092e608b1e5f8f1d1773b0057ce59.tar.xz
vd: use ST.2086 / HDR10 MaxCLL in addition to mastering metadata
MaxCLL is the more authoritative source for the metadata we are interested in. The use of mastering metadata is sort of a hack anyway, since there's no clearly-defined relationship between the mastering peak brightness and the actual content. (Unlike MaxCLL, which is an explicit relationship) Also move the parameter fixing to `fix_image_params` I don't know if the avutil check is strictly necessary but I've included it anyway to be on the safe side.
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/wscript b/wscript
index eea216e4a4..7a4ef0d4c9 100644
--- a/wscript
+++ b/wscript
@@ -449,6 +449,12 @@ FFmpeg/Libav libraries. You need at least {0}. Aborting.".format(libav_versions_
'func': check_statement('libavutil/imgutils.h',
'av_image_copy_uc_from(0,0,0,0,0,0,0)',
use='libav'),
+ }, {
+ 'name': 'avutil-content-light-level',
+ 'desc': 'libavutil content light level struct',
+ 'func': check_statement('libavutil/frame.h',
+ 'AV_FRAME_DATA_CONTENT_LIGHT_LEVEL',
+ use='libav'),
},
]