[Bug 100854] YUV to RGB Color Space Conversion result is not precise

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu May 4 06:53:46 UTC 2017


Kenneth Graunke <kenneth at whitecape.org> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Kenneth Graunke <kenneth at whitecape.org> ---
Fixed by:

commit a6fb943f3eb86ca501a7e7b8d4621ba215f91133
Author: Johnson Lin <johnson.lin at intel.com>
Date:   Thu May 4 14:37:52 2017 +0800

    nir/lower_tex: Fix minor error in YUV color conversion matrix

    The matrix used for YCbCr to RGB is listed in:


    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 <eric at anholt.net>
    Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>

You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20170504/11d00f42/attachment.html>

More information about the intel-3d-bugs mailing list