diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-11-04 06:27:38 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-01-22 14:54:55 +0000 |
commit | 475f76dc6d0154a109cb83d123e1839d22455ef8 (patch) | |
tree | 8cf0c2b2b8b352e654345485776afb2f44f669fc /video/mp_image.c | |
parent | 47be5ad4aaa20df4bb1577110198d5aab3c88925 (diff) | |
download | mpv-475f76dc6d0154a109cb83d123e1839d22455ef8.tar.bz2 mpv-475f76dc6d0154a109cb83d123e1839d22455ef8.tar.xz |
csputils: replace more primitives with pl_
We can go deeper, but need to stop somewhere to not reimplement vo_gpu
using libplacebo...
Diffstat (limited to 'video/mp_image.c')
-rw-r--r-- | video/mp_image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/mp_image.c b/video/mp_image.c index b86ecb9b6a..e8e1690463 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -961,11 +961,11 @@ void mp_image_params_guess_csp(struct mp_image_params *params) } else { // If the signal peak is unknown, we're forced to pick the TRC's // nominal range as the signal peak to prevent clipping - params->color.hdr.max_luma = mp_trc_nom_peak(params->color.transfer) * MP_REF_WHITE; + params->color.hdr.max_luma = pl_color_transfer_nominal_peak(params->color.transfer) * MP_REF_WHITE; } } - if (!mp_trc_is_hdr(params->color.transfer)) { + if (!pl_color_space_is_hdr(¶ms->color)) { // Some clips have leftover HDR metadata after conversion to SDR, so to // avoid blowing up the tone mapping code, strip/sanitize it params->color.hdr = pl_hdr_metadata_empty; |