[vsp-tests] [PATCH 16/16] tests: Add color space support to RGB <-> YUV conversion test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Run the YUV <-> RGB conversion test with all four color spaces supported
by the VSP.

Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
---
 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 23a4f411e863..5016e65cb865 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
 }
-- 
Regards,

Laurent Pinchart





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux