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 /filters | |
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 'filters')
-rw-r--r-- | filters/f_decoder_wrapper.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/filters/f_decoder_wrapper.c b/filters/f_decoder_wrapper.c index 6551e3478f..87489ccdf1 100644 --- a/filters/f_decoder_wrapper.c +++ b/filters/f_decoder_wrapper.c @@ -548,11 +548,6 @@ void mp_decoder_wrapper_set_play_dir(struct mp_decoder_wrapper *d, int dir) thread_unlock(p); } -static bool is_valid_peak(float sig_peak) -{ - return !sig_peak || (sig_peak >= 1 && sig_peak <= 100); -} - static void fix_image_params(struct priv *p, struct mp_image_params *params) { @@ -623,12 +618,6 @@ static void fix_image_params(struct priv *p, mp_colorspace_merge(&m.color, &c->color); - // Sanitize the HDR peak. Sadly necessary - if (!is_valid_peak(m.color.sig_peak)) { - MP_WARN(p, "Invalid HDR peak in stream: %f\n", m.color.sig_peak); - m.color.sig_peak = 0.0; - } - // Guess missing colorspace fields from metadata. This guarantees all // fields are at least set to legal values afterwards. mp_image_params_guess_csp(&m); |