diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-11-04 00:52:14 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-11-05 18:57:36 +0100 |
commit | 73fbe09a49d3ed00c6e19fdcc658802f28974ae2 (patch) | |
tree | 8a39d61582d5e951547a6ce97638929c5f342e84 /video/zimg.c | |
parent | d9a483cb17cf5239546fec2462b4c2ccca579723 (diff) | |
download | mpv-73fbe09a49d3ed00c6e19fdcc658802f28974ae2.tar.bz2 mpv-73fbe09a49d3ed00c6e19fdcc658802f28974ae2.tar.xz |
ALL: use pl_hdr_metadata and nuke sig_peak
This commit replaces all uses of sig_peak and maps all HDR metadata.
Form notable changes mixed usage of maxCLL and max_luma is resolved and
not always max_luma is used which makes vo_gpu and vo_gpu_next behave
the same way.
Diffstat (limited to 'video/zimg.c')
-rw-r--r-- | video/zimg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/zimg.c b/video/zimg.c index be2953c58c..5ff300caab 100644 --- a/video/zimg.c +++ b/video/zimg.c @@ -548,8 +548,8 @@ static bool mp_zimg_state_init(struct mp_zimg_context *ctx, params.allow_approximate_gamma = 1; // leave at default for SDR, which means 100 cd/m^2 for zimg - if (ctx->dst.color.sig_peak > 0 && mp_trc_is_hdr(ctx->dst.color.gamma)) - params.nominal_peak_luminance = ctx->dst.color.sig_peak * MP_REF_WHITE; + if (ctx->dst.color.hdr.max_luma > 0 && mp_trc_is_hdr(ctx->dst.color.gamma)) + params.nominal_peak_luminance = ctx->dst.color.hdr.max_luma; st->graph = zimg_filter_graph_build(&src_fmt, &dst_fmt, ¶ms); if (!st->graph) { |