From 3204590b0a833fe64fcaed9b5a305a22fb5cb834 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 1 Mar 2017 01:02:10 +0200 Subject: tests: Add HSV to RGB conversion test Update the RGB to HSV conversion test script to include HSV to RGB conversion. Signed-off-by: Laurent Pinchart --- tests/vsp-unit-test-0017.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/vsp-unit-test-0017.sh b/tests/vsp-unit-test-0017.sh index 26cf4af..1799c1a 100755 --- a/tests/vsp-unit-test-0017.sh +++ b/tests/vsp-unit-test-0017.sh @@ -11,7 +11,7 @@ . ./vsp-lib.sh -features="rpf.0 hst wpf.0" +features="rpf.0 hsi hst wpf.0" formats="HSV24 HSV32" test_rgb_to_hsv() { @@ -30,6 +30,22 @@ test_rgb_to_hsv() { test_complete $result } +test_hsv_to_rgb() { + local format=$1 + + test_start "$format to RGB conversion" + + pipe_configure rpf-hsi + format_configure rpf-hsi $format 1024x768 ARGB32 + + vsp_runner rpf.0 & + vsp_runner wpf.0 + + result=$(compare_frames) + + test_complete $result +} + test_hsv_to_hsv() { local format=$1 @@ -53,6 +69,7 @@ test_main() { for format in $formats ; do test_rgb_to_hsv $format + test_hsv_to_rgb $format test_hsv_to_hsv $format done } -- cgit v1.2.3