diff options
author | wm4 <wm4@nowhere> | 2013-05-01 23:59:00 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-04 01:32:50 +0200 |
commit | 872aefaa1521a8cf70c6e14f3356e9d00ed7efa3 (patch) | |
tree | 4f04a63b9c31d71a326a112004e8d8e213e739e4 /video/decode | |
parent | 16d40828aecf4028acadeeecaf0294756298f970 (diff) | |
download | mpv-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/decode')
0 files changed, 0 insertions, 0 deletions