From 872aefaa1521a8cf70c6e14f3356e9d00ed7efa3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 1 May 2013 23:59:00 +0200 Subject: 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. --- 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 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 }; -- cgit v1.2.3