From a74b6619f2aed42c2a6416ae0d798b95760f6a14 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Wed, 2 Dec 2020 01:34:42 +0100 Subject: csputils: add MP_CHROMA_TOPLEFT This is commonly used by UHD/HDR sources, and mpv hilariously ignores it up until now, just blindly mapping it to MP_CHROMA_AUTO without even so much as a warning message. It would be justified to add all the other chroma locations as well, but I'm lazy and just wanted to quickly fix this bug. --- video/csputils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/csputils.h') diff --git a/video/csputils.h b/video/csputils.h index 965c313a02..323468260f 100644 --- a/video/csputils.h +++ b/video/csputils.h @@ -186,6 +186,7 @@ bool mp_colorspace_equal(struct mp_colorspace c1, struct mp_colorspace c2); enum mp_chroma_location { MP_CHROMA_AUTO, + MP_CHROMA_TOPLEFT, // uhd MP_CHROMA_LEFT, // mpeg2/4, h264 MP_CHROMA_CENTER, // mpeg1, jpeg MP_CHROMA_COUNT, -- cgit v1.2.3