4 # Test CLU and LUT in RGB and YUV modes. Use a RPF -> CLU -> WPF and
5 # RPF -> LUT -> WPF pipelines with identical input and output formats.
10 features="rpf.0 clu lut wpf.0"
11 formats="RGB24 YUV444M"
15 # Keep the "zero" configuration first to catch lack of hardware table setup
16 # due to V4L2 control caching, as the initial value of the LUT and CLU table
18 clu_configs="zero identity wave"
19 lut_configs="zero identity gamma"
26 test_start "$(echo $lut_type | tr [:lower:] [:upper:]) in $format with $config configuration"
28 config_file=frames/${lut_type}-${config}.bin
30 pipe_configure rpf-${lut_type}
31 format_configure rpf-${lut_type} $format 1024x768
33 vsp1_set_control $lut_type "Look-Up+Table" "<$config_file"
38 result=$(compare_frames $lut_type=$config_file)
44 for lut in $lut_types ; do
45 configs=$(eval echo \$${lut}_configs)
46 for format in $formats ; do
47 for config in $configs ; do
48 test_lut $lut $format $config
54 test_init $0 "$features"