diff options
author | Johnson Lin <[email protected]> | 2017-05-04 14:37:52 +0800 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-05-19 23:23:21 +0100 |
commit | 3922a43bf2aa854e55363a9d04f580c065d60497 (patch) | |
tree | 6d97b8e7292fe04237a79226f6bc4284127a1532 /src/gallium | |
parent | 832f6b45433aceb75dda28d2d5b5d26ee9d43e70 (diff) |
nir/lower_tex: Fix minor error in YUV color conversion matrix
The matrix used for YCbCr to RGB is listed in:
https://en.wikipedia.org/wiki/YCbCr
There was an error in converting the offsets from integers to unorm
values: 0.0625=16/256 should be 16.0/255,and 0.5=128.0/256 should be
128.0/255. With this fix, the CSC result is bit aligned with wikipedia's
conversion result and FFMPeg's result.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100854
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
(cherry picked from commit a6fb943f3eb86ca501a7e7b8d4621ba215f91133)
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions