diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-09-13 20:39:33 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-09-13 20:40:43 +0300 |
commit | ccd867a8486326393f3a57d8b67c73db0bfc582b (patch) | |
tree | af8d261b3fedfc87b28b23938eb37b89327ad999 /scripts/vsp-lib.sh | |
parent | 5717f7fdedb200c00e2ce9020198738c20d46c62 (diff) |
vsp-lib: SRU and rotation are not perfectly emulated by gen-image
Turn on fuzzy comparison for rotation and for the SRU regardless of the
scaling ratio.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'scripts/vsp-lib.sh')
-rwxr-xr-x | scripts/vsp-lib.sh | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index 3261ad7..f576b3b 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -146,7 +146,10 @@ reference_frame() { options="$options --lut $value" ;; rotate) - [ x$value = x90 ] && options="$options --rotate" + [ x$value = x90 ] && { + options="$options --rotate" ; + __vsp_pixel_perfect=false ; + } ;; vflip) [ x$value = x1 ] && options="$options --vflip" @@ -241,7 +244,7 @@ compare_frames() { local size=$(vsp1_entity_get_size wpf.$wpf 1) local method=exact - if [ x$__vsp_uds_scale = xtrue ] ; then + if [ $__vsp_pixel_perfect != xtrue ] ; then method=fuzzy fi @@ -420,9 +423,9 @@ pipe_reset() { __vsp_bru_inputs= __vsp_rpf_format= - __vsp_uds_scale= __vsp_wpf_index= __vsp_wpf_format= + __vsp_pixel_perfect=true } pipe_configure() { @@ -512,7 +515,7 @@ format_rpf_bru_uds() { $mediactl -d $mdev -V "'$dev wpf.0':0 [fmt:$infmt/$outsize]" $mediactl -d $mdev -V "'$dev wpf.0':1 [fmt:$outfmt/$outsize]" - [ $insize != $outsize ] && __vsp_uds_scale=true + [ $insize != $outsize ] && __vsp_pixel_perfect=false __vsp_rpf_format=$1 __vsp_wpf_format=$3 } @@ -572,7 +575,7 @@ format_rpf_uds() { $mediactl -d $mdev -V "'$dev wpf.0':0 [fmt:$infmt/$outsize]" $mediactl -d $mdev -V "'$dev wpf.0':1 [fmt:$outfmt/$outsize]" - [ $insize != $outsize ] && __vsp_uds_scale=true + [ $insize != $outsize ] && __vsp_pixel_perfect=false __vsp_rpf_format=$1 __vsp_wpf_format=$3 } @@ -593,7 +596,7 @@ format_rpf_uds_bru() { $mediactl -d $mdev -V "'$dev wpf.0':0 [fmt:$infmt/$outsize]" $mediactl -d $mdev -V "'$dev wpf.0':1 [fmt:$outfmt/$outsize]" - [ $insize != $outsize ] && __vsp_uds_scale=true + [ $insize != $outsize ] && __vsp_pixel_perfect=false __vsp_rpf_format=$1 __vsp_wpf_format=$3 } @@ -610,7 +613,7 @@ format_rpf_sru() { $mediactl -d $mdev -V "'$dev wpf.0':0 [fmt:$infmt/$outsize]" $mediactl -d $mdev -V "'$dev wpf.0':1 [fmt:$outfmt/$outsize]" - [ $insize != $outsize ] && __vsp_uds_scale=true + __vsp_pixel_perfect=false __vsp_rpf_format=$1 __vsp_wpf_format=$3 } |