From 32c8be484cf81717471909c7fa4dd4635d3a01c8 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 14 Sep 2016 13:22:37 +0300 Subject: 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 --- scripts/vsp-lib.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts/vsp-lib.sh') 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" -- cgit v1.2.3