summaryrefslogtreecommitdiffstats
path: root/video/csputils.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-01 23:59:00 +0200
committerwm4 <wm4@nowhere>2013-05-04 01:32:50 +0200
commit872aefaa1521a8cf70c6e14f3356e9d00ed7efa3 (patch)
tree4f04a63b9c31d71a326a112004e8d8e213e739e4 /video/csputils.h
parent16d40828aecf4028acadeeecaf0294756298f970 (diff)
downloadmpv-872aefaa1521a8cf70c6e14f3356e9d00ed7efa3.tar.bz2
mpv-872aefaa1521a8cf70c6e14f3356e9d00ed7efa3.tar.xz
vo_opengl: XYZ input support
Useful for the j2k decoder. Matrix taken from http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html (XYZ to sRGB, whitepoint D65) Gamma conversion follows what libswscale does (2.6 in, 2.2 out). If linear RGB is used internally for scaling, the gamma conversion will be undone by setting the exponent to 1. Unfortunately, the two gamma values don't compensate each others exactly (2.2 vs. 1/0.45=2.22...), so output is a little bit incorrect in sRGB or color-managed mode. But for now try hard to match libswscale output, which may or may not be correct.
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 d66bb86fa3..184e1ee76a 100644
--- a/video/csputils.h
+++ b/video/csputils.h
@@ -40,6 +40,7 @@ enum mp_csp {
MP_CSP_BT_709,
MP_CSP_SMPTE_240M,
MP_CSP_RGB,
+ MP_CSP_XYZ,
MP_CSP_COUNT
};