diff options
author | wm4 <wm4@nowhere> | 2020-05-09 18:00:15 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-09 18:02:57 +0200 |
commit | bf19f34960ef1664ef8da614aa1b034003fcbc0f (patch) | |
tree | f5a7226c4ca5bd377917a30518eed19bf9617dea /input/event.c | |
parent | 56dbbc38479bd84905ac4478b1b853e907a583dd (diff) | |
download | mpv-bf19f34960ef1664ef8da614aa1b034003fcbc0f.tar.bz2 mpv-bf19f34960ef1664ef8da614aa1b034003fcbc0f.tar.xz |
csputils: add function for getting uint/float transformation
This provides a way to convert YUV in fixed point (or pseudo-fixed
point; probably best to say "uint") to float, or rather coefficients
to perform such a conversion. Things like colorspace conversion is out
of scope, so this is simple and strictly per-component.
This is somewhat similar to mp_get_csp_mul(), but includes proper color
range expansion and correct chroma centering. The old function even
seems to have a bug, and assumes something about shifted range for full
range YCbCr, which is wrong.
vo_gpu should probably use the new function eventually.
Diffstat (limited to 'input/event.c')
0 files changed, 0 insertions, 0 deletions