diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2025-04-08 03:03:47 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2025-04-09 02:29:59 +0300 |
commit | c70de0d98925d3ebb206b65ce817143c0ae1391a (patch) | |
tree | 2ede1bb3ae369851d05b038ba93c507f4a52674c | |
parent | 419724af448a6aae5d0cf8f3932b93d128f581ab (diff) |
tests: Add color space support to RGB <-> YUV conversion testcsc
Run the YUV <-> RGB conversion test with all four color spaces supported
by the VSP.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rwxr-xr-x | tests/vsp-unit-test-0028.sh | 11 |
1 files 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 } |