diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-02-13 17:45:28 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-02-13 17:49:53 +0200 |
commit | fc525ce1e82ee643138fbfbc4a82eb60e705eece (patch) | |
tree | 24f65e20d9467b9526a205c420e0bd347bd4bbca /scripts | |
parent | 50123fc029703b0e8aff01f09679dc18978f1275 (diff) |
vsp-lib: Fix reference frame generation for HSV input formats
gen-image doesn't support processing HSV input frames. Fortunately the
HSV tests don't require it either, when they take an HSV input frame
they just pass it straight to the WPF. We can thus set the input format
to RGB for reference frame generation.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vsp-lib.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index 2073770..1fef249 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -103,6 +103,16 @@ reference_frame() { local alpha= local options= + # gen-image doesn't support processing HSV input images. The good news + # is that the HSV tests that take HSV images as inputs don't need to + # perform any processing. We can set the input format to RGB for HSB + # reference frame generation. + case $in_format in + HSV24 | HSV32) + in_format=ARGB32 + ;; + esac + # Start with the input format to compute the alpha value being used by # the RPF after unpacking. Keep in sync with generate_input_frame. case $in_format in |