From c70de0d98925d3ebb206b65ce817143c0ae1391a Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 8 Apr 2025 03:03:47 +0300 Subject: tests: Add color space support to RGB <-> YUV conversion test Run the YUV <-> RGB conversion test with all four color spaces supported by the VSP. Signed-off-by: Laurent Pinchart --- tests/vsp-unit-test-0028.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/vsp-unit-test-0028.sh b/tests/vsp-unit-test-0028.sh index 23a4f41..5016e65 100755 --- a/tests/vsp-unit-test-0028.sh +++ b/tests/vsp-unit-test-0028.sh @@ -16,9 +16,10 @@ test_rwpf_csc() { local format=$2 local infmt=${format%-*} local outfmt=${format#*-} + local encoding=$3 local midfmt - test_start "$rwpf CSC $infmt -> $outfmt" + test_start "$rwpf CSC $infmt -> $outfmt ($encoding)" if [ $rwpf = 'RPF' ] ; then midfmt=$outfmt @@ -27,12 +28,12 @@ test_rwpf_csc() { fi pipe_configure rpf-wpf 0 0 - format_configure rpf-wpf 0 0 $infmt 1024x768 $outfmt --midfmt=$midfmt + format_configure rpf-wpf 0 0 $infmt 1024x768 $outfmt --midfmt=$midfmt --encoding=$encoding vsp_runner rpf.0 & vsp_runner wpf.0 - local result=$(compare_frames) + local result=$(compare_frames $rwpf-$encoding) test_complete $result } @@ -42,7 +43,9 @@ test_main() { for rwpf in RPF WPF ; do for format in $formats ; do - test_rwpf_csc $rwpf $format + for encoding in 601:lim-range 601:full-range 709:lim-range 709:full-range ; do + test_rwpf_csc $rwpf $format $encoding + done done done } -- cgit v1.2.3