weston/tests
Vitaly Prosyak 0c5860fafb tests/color-shaper-matrix: add creation and usage cLUT profiles
Added cLUT profile creation to validate linearization algorithm
for DToB3 tag (direction dev to PCS). The 3DLUT is
built by using raw matrix conversion from dev to XYZ and reverse
(XYZ to device).

The test uses floating point pipeline, known as unbounded mode of LCMS.
The details are described in ICCSpecRevision_02_11_06_Float.pdf

The purpose of these new test cases is to keep the GL-renderer 3D LUT
path tested even after color-lcms and GL-renderer start using
specialized matrix-shaper paths.

These also exercise build_eotf_from_clut_profile() in color-lcms, but do
not actually verify it. These cases only test that the recovered EOTF
and its inverse produce an identity mapping together.

BT.2020 is not used in these tests, because the RGB-XYZ conversion
matrix does not stay inside [0.0, 1.0] in either direction, which would
be a problem for the 3D LUT element in the multiProcessingElement
pipelines. Handling that would have been possible, but testing with
AdobeRGB color space should suffice while keeping the test code from
being even more complicated.

roundtrip_verification() tests that we succeed in creating cms
pipelines correctly in both directions so that the resulting ICC file is
better behaved. The Weston test itself only cares about the BToD
direction.

Credits to:
Vladimir  Lachine <vladimir.lachine@amd.com>
Graeme Gill <graeme@argyllcms.com>
Co-authored-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2022-06-03 10:22:25 +00:00
..
reference tests: color shaper-matrix test 2022-02-12 23:19:02 -05:00
alpha-blending-test.c tests: use color_float rgb[] alias more 2022-02-18 15:22:44 +00:00
bad-buffer-test.c
buffer-transforms-test.c
color-manager-test.c
color-metadata-errors-test.c tests: add color-metadata-errors test 2022-05-27 10:30:35 +00:00
color-metadata-parsing-test.c tests: add color-metadata-parsing 2022-05-27 10:30:35 +00:00
color-shaper-matrix-test.c tests/color-shaper-matrix: add creation and usage cLUT profiles 2022-06-03 10:22:25 +00:00
color_util.c tests: add lcms-util with MPE curves 2022-06-03 10:22:25 +00:00
color_util.h tests: add lcms-util with MPE curves 2022-06-03 10:22:25 +00:00
config-parser-test.c tests: add get_double in config-parser tests 2022-03-14 08:50:30 +00:00
devices-test.c tests: fix all leaks in devices-test 2021-06-28 14:21:43 +03:00
drm-formats-test.c drm-formats: add weston_drm_format_array_count_pairs() 2021-11-25 10:47:45 -03:00
drm-smoke-test.c tests: fix leak in drm-smoke-test.c 2022-01-21 11:49:34 +00:00
event-test.c
input-timestamps-helper.c
input-timestamps-helper.h
internal-screenshot-test.c
ivi-layout-internal-test.c
ivi-layout-test-client.c
ivi-layout-test-plugin.c tests: preserve ivi runner section 2022-03-08 14:50:41 +02:00
ivi-shell-app-test.c
ivi-test.h
keyboard-test.c
lcms-util-test.c tests: add lcms-util with MPE curves 2022-06-03 10:22:25 +00:00
lcms_util.c tests/lcms_util: add SetTextTags() 2022-06-03 10:22:25 +00:00
lcms_util.h tests/lcms_util: add SetTextTags() 2022-06-03 10:22:25 +00:00
linux-explicit-synchronization-test.c tests: fix all leaks in linux-explicit-synchronization-test 2021-06-28 14:21:27 +03:00
matrix-test.c tests: add matrix-test for CI 2022-05-31 12:26:09 +00:00
meson.build tests/color-shaper-matrix: add creation and usage cLUT profiles 2022-06-03 10:22:25 +00:00
output-damage-test.c
output-transforms-test.c
plugin-registry-test.c
pointer-shot-test.c tests: fix leak in surface_commit_color() in pointer-shot 2021-06-16 14:41:08 +00:00
pointer-test.c tests: destroy client in pointer-test 2021-06-16 14:41:08 +00:00
presentation-test.c tests: fix leaks in presentation-test 2021-06-16 14:41:08 +00:00
roles-test.c tests/roles: switch to xdg-shell 2021-07-23 17:26:02 +01:00
safe-signal-output-removal-test.c Move shell-utils to its own directory 2022-03-31 17:15:55 +00:00
safe-signal-test.c test/safe-signal: Add a basic test for weston_signal_emit_mutable 2021-12-14 17:55:06 +00:00
setbacklight.c
string-test.c
subsurface-shot-test.c tests: Add test for subsurfaces mapping hierachies 2022-02-07 12:16:16 +00:00
subsurface-test.c tests: reduce subsurface-test verbosity 2021-06-23 15:20:25 +03:00
surface-global-test.c libweston: Rename weston_surface_destroy() to weston_surface_unref() 2022-05-12 16:46:31 +03:00
surface-screenshot-test.c
surface-test.c libweston: Rename weston_surface_destroy() to weston_surface_unref() 2022-05-12 16:46:31 +03:00
text-test.c tests: fix all leaks in text-test 2021-06-28 14:21:27 +03:00
timespec-test.c
touch-test.c tests: fix all leaks in touch-test 2021-06-28 14:21:27 +03:00
vertex-clip-test.c
viewporter-shot-test.c
viewporter-test.c
weston-test-client-helper.c
weston-test-client-helper.h
weston-test-desktop-shell.c test/desktop-shell: Use weston_curtain 2022-03-31 17:15:55 +00:00
weston-test-fixture-compositor.c Revert "build: add test-gl-renderer option" 2022-06-02 08:37:36 +00:00
weston-test-fixture-compositor.h
weston-test-runner.c
weston-test-runner.h tests: Bump alignment for test structures to 64 bytes 2021-08-03 18:42:25 +01:00
weston-test.c tests: Fix use after free on exit 2022-01-19 10:55:04 -06:00
weston-testsuite-data.h
xwayland-test.c tests/xwayland: Remove manual timeout implementation 2021-12-14 14:57:40 +00:00
yuv-buffer-test.c gl-renderer: Add support for WL_SHM_FORMAT_YUV444 2022-05-20 11:24:41 +00:00