summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/vsp-unit-test-0017.sh19
1 files changed, 18 insertions, 1 deletions
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
}