summaryrefslogtreecommitdiffstats
path: root/video/csputils.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2020-12-02 01:34:42 +0100
committerNiklas Haas <git@haasn.xyz>2020-12-02 01:36:29 +0100
commita74b6619f2aed42c2a6416ae0d798b95760f6a14 (patch)
tree7081c03eef183bc7905104a9d9edcee9ce37e9ea /video/csputils.h
parentf16c6472a1d7b3506f561a1e1d0b2e9675ca06ea (diff)
downloadmpv-a74b6619f2aed42c2a6416ae0d798b95760f6a14.tar.bz2
mpv-a74b6619f2aed42c2a6416ae0d798b95760f6a14.tar.xz
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.
Diffstat (limited to 'video/csputils.h')
-rw-r--r--video/csputils.h1
1 files changed, 1 insertions, 0 deletions
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,