summaryrefslogtreecommitdiffstats
path: root/video/csputils.h
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2014-11-26 21:35:08 +0100
committerAlessandro Ghedini <alessandro@ghedini.me>2014-12-01 21:07:26 +0100
commit863701391c7657b8fccb264f2161f84a46ce540c (patch)
tree0fd1abb9e15b346dab283f3a66604d29facfd974 /video/csputils.h
parent3803c1427930fa4bfa8ce2572a5a231915e932be (diff)
downloadmpv-863701391c7657b8fccb264f2161f84a46ce540c.tar.bz2
mpv-863701391c7657b8fccb264f2161f84a46ce540c.tar.xz
vo_opengl: Linearize non-RGB sRGB files correctly (eg. JPEG)
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'video/csputils.h')
-rw-r--r--video/csputils.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/video/csputils.h b/video/csputils.h
index 33bac87f64..1ad88bf261 100644
--- a/video/csputils.h
+++ b/video/csputils.h
@@ -67,6 +67,13 @@ enum mp_csp_prim {
MP_CSP_PRIM_COUNT
};
+enum mp_csp_trc {
+ MP_CSP_TRC_NONE,
+ MP_CSP_TRC_BT_2020_APPROX,
+ MP_CSP_TRC_BT_2020_EXACT,
+ MP_CSP_TRC_SRGB
+};
+
// Any enum mp_csp_prim value is a valid index (except MP_CSP_PRIM_COUNT)
extern const char *const mp_csp_prim_names[MP_CSP_PRIM_COUNT];