Skip to content
  • Vitaly Prosyak's avatar
    tests: color shaper-matrix test · fe35ca2d
    Vitaly Prosyak authored
    
    
    1. Use fixture_setup to set the generated by LCMS output profile based on
       given chromaticities and white points. The following  list of well known
       chromaticities:
        - sRGB
        - adobe RGB
        - bt2020
       and white point is D65. Use INTENT_ABSOLUTE_COLORIMETRIC to avoid BPC.
       Input profile is always sRGB and it is used internally by Weston as
       stock profile.
    
    2. Use these hardcoded matrixes as part of pipeline 1DLUT->3x3->1DLUT.
       The diagnostic code to retrieve the transform matrix is availble into
       test in the comments. The conversion matrixes generated for the
       following cases:
        - sRGB to sRGB (unity)
        - sRGB to adobeRGB
        - sRGB to BT2020
    3. Compare GPU shaders(gl texture3D) vs manual pipeline calculation
       Use different max tolerable error per transform.
       There are comments how number of points in 3DLUT is related to tolerance.
       Tolerance depends more on the 1D LUT used for the inv EOTF than
       the tested 3D LUT size: 9x9x9, 17x17x17, 33x33x33, 127x127x127.
    
    4. Enable build matrix-shaper test if color-management-lcms is enabled.
    
    Co-authored-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
    Signed-off-by: default avatarVitaly Prosyak <vitaly.prosyak@amd.com>
    fe35ca2d
Loading