summaryrefslogtreecommitdiff
path: root/scripts/vsp-lib.sh
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2016-09-14 13:22:37 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2016-09-14 13:46:04 +0300
commit32c8be484cf81717471909c7fa4dd4635d3a01c8 (patch)
tree87c43738b1ccff1edc6c65d800b021849d64fcfd /scripts/vsp-lib.sh
parentccd867a8486326393f3a57d8b67c73db0bfc582b (diff)
vsp-lib: Fix fuzzy comparison
A typo caused fuzzy comparison to be used in all tests. Fix it, and make sure the fuzzy comparison gets properly enabled when using rotation. Fixes: ccd867a84863 ("vsp-lib: SRU and rotation are not perfectly emulated by gen-image") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'scripts/vsp-lib.sh')
-rwxr-xr-xscripts/vsp-lib.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh
index f576b3b..7ebdaf8 100755
--- a/scripts/vsp-lib.sh
+++ b/scripts/vsp-lib.sh
@@ -242,20 +242,20 @@ compare_frames() {
local in_fmt=$(echo $in_format | tr '[:upper:]' '[:lower:]')
local out_fmt=$(echo $out_format | tr '[:upper:]' '[:lower:]')
local size=$(vsp1_entity_get_size wpf.$wpf 1)
- local method=exact
-
- if [ $__vsp_pixel_perfect != xtrue ] ; then
- method=fuzzy
- fi
reference_frame ${frames_dir}ref-frame.bin $in_format $out_format $size $args
+ local method=exact
local result="pass"
local params=${args// /-}
params=${params:+-$params}
params=${params//\//_}
params=$in_fmt-$out_fmt-$size$params
+ if [ x$__vsp_pixel_perfect != xtrue ] ; then
+ method=fuzzy
+ fi
+
for frame in ${frames_dir}frame-*.bin ; do
local match="true"