summaryrefslogtreecommitdiff
path: root/scripts/vsp-lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vsp-lib.sh')
-rwxr-xr-xscripts/vsp-lib.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh
index 114bc72..92a9121 100755
--- a/scripts/vsp-lib.sh
+++ b/scripts/vsp-lib.sh
@@ -196,7 +196,7 @@ reference_frame() {
[ x$__vsp_brx_inputs != x ] && options="$options -c $__vsp_brx_inputs"
$genimage -i $in_format -f $out_format -s $size -a $alpha $options -o $file \
- frames/frame-reference-1024x768.pnm
+ frames/frame-reference-1024x768.ppm
}
reference_histogram() {
@@ -210,7 +210,7 @@ reference_histogram() {
[[ "x$hgt_hue_areas" != x ]] && hue="--histogram-areas $hgt_hue_areas"
$genimage -i $format -f $format -s $size -H $file --histogram-type $type $hue \
- frames/frame-reference-1024x768.pnm
+ frames/frame-reference-1024x768.ppm
}
# ------------------------------------------------------------------------------
@@ -247,17 +247,17 @@ compare_frame_fuzzy() {
local img_a=$3
local img_b=$4
- local pnm_a=${img_a/bin/pnm}
- local pnm_b=${img_b/bin/pnm}
+ local ppm_a=${img_a/bin/ppm}
+ local ppm_b=${img_b/bin/ppm}
- raw2rgbpnm -f $fmt -s $size $img_a $pnm_a > /dev/null
- raw2rgbpnm -f $fmt -s $size $img_b $pnm_b > /dev/null
+ raw2rgbpnm -f $fmt -s $size $img_a $ppm_a > /dev/null
+ raw2rgbpnm -f $fmt -s $size $img_b $ppm_b > /dev/null
- local ae=$(compare -metric ae $pnm_a $pnm_b /dev/null 2>&1)
- local mae=$(compare -metric mae $pnm_a $pnm_b /dev/null 2>&1 | sed 's/.*(\(.*\))/\1/')
+ local ae=$(compare -metric ae $ppm_a $ppm_b /dev/null 2>&1)
+ local mae=$(compare -metric mae $ppm_a $ppm_b /dev/null 2>&1 | sed 's/.*(\(.*\))/\1/')
- rm $pnm_a
- rm $pnm_b
+ rm $ppm_a
+ rm $ppm_b
local width=$(echo $size | cut -d 'x' -f 1)
local height=$(echo $size | cut -d 'x' -f 2)
@@ -892,7 +892,7 @@ generate_input_frame() {
$(format_v4l2_is_yuv $format) && options="$options -C -i YUV444M"
$genimage -f $format -s $size -a $alpha $options -o $file \
- frames/frame-reference-1024x768.pnm
+ frames/frame-reference-1024x768.ppm
}
vsp_runner() {