From ef6052c01e323cece4ace135a1724fd09f86c86d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sun, 17 Nov 2024 10:22:29 +0100 Subject: [PATCH] vo_gpu_next: remove colospace overrides Hacks like that has no place here, mp_image should be tagged correctly, across the player, gpu-next is not special. --- video/out/vo_gpu_next.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 0663777376..b57b671b81 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -625,23 +625,6 @@ static bool map_frame(pl_gpu gpu, pl_tex *tex, const struct pl_source_frame *src .user_data = mpi, }; - // mp_image, like AVFrame, likes communicating RGB/XYZ/YCbCr status - // implicitly via the image format, rather than the actual tagging. - switch (mp_imgfmt_get_forced_csp(par->imgfmt)) { - case PL_COLOR_SYSTEM_RGB: - frame->repr.sys = PL_COLOR_SYSTEM_RGB; - frame->repr.levels = PL_COLOR_LEVELS_FULL; - break; - case PL_COLOR_SYSTEM_XYZ: - frame->repr.sys = PL_COLOR_SYSTEM_XYZ; - break; - case PL_COLOR_SYSTEM_UNKNOWN: - if (!frame->repr.sys) - frame->repr.sys = pl_color_system_guess_ycbcr(par->w, par->h); - break; - default: break; - } - if (fp->hwdec) { struct mp_imgfmt_desc desc = mp_imgfmt_get_desc(par->imgfmt);