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/zimg.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/zimg.c')
-rw-r--r-- | video/zimg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/zimg.c b/video/zimg.c index 35a987dfea..907e81deb7 100644 --- a/video/zimg.c +++ b/video/zimg.c @@ -551,7 +551,7 @@ 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.hdr.max_luma > 0 && mp_trc_is_hdr(ctx->dst.color.transfer)) + if (ctx->dst.color.hdr.max_luma > 0 && pl_color_space_is_hdr(&ctx->dst.color)) params.nominal_peak_luminance = ctx->dst.color.hdr.max_luma; st->graph = zimg_filter_graph_build(&src_fmt, &dst_fmt, ¶ms); |