diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-03-01 01:02:10 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-03-18 10:28:46 +0200 |
commit | 3204590b0a833fe64fcaed9b5a305a22fb5cb834 (patch) | |
tree | a1f6ecb79be88ef69084079bce06f1a96375c9be | |
parent | 3a7b09be87e2d7ab81e3ebfa850c346b774b45f0 (diff) |
tests: Add HSV to RGB conversion testhsv
Update the RGB to HSV conversion test script to include HSV to RGB
conversion.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rwxr-xr-x | tests/vsp-unit-test-0017.sh | 19 |
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 } |