Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
0720d263
Commit
0720d263
authored
Mar 10, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FATE: use $fuzz directly in do_tiny_psnr() instead of passing it around
parent
702985b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
fate-run.sh
tests/fate-run.sh
+6
-6
No files found.
tests/fate-run.sh
View file @
0720d263
...
...
@@ -14,7 +14,7 @@ target_path=$4
command
=
$5
cmp
=
${
6
:-
diff
}
ref
=
${
7
:-
"
${
base
}
/ref/fate/
${
test
}
"
}
fuzz
=
$
8
fuzz
=
$
{
8
:-
1
}
threads
=
${
9
:-
1
}
thread_type
=
${
10
:-
frame
+slice
}
cpuflags
=
${
11
:-
all
}
...
...
@@ -30,7 +30,7 @@ do_tiny_psnr(){
val
=
$(
expr
"
$psnr
"
:
".*
$3
: *
\(
[0-9.]*
\)
"
)
size1
=
$(
expr
"
$psnr
"
:
'.*bytes: *\([0-9]*\)'
)
size2
=
$(
expr
"
$psnr
"
:
'.*bytes:[ 0-9]*/ *\([0-9]*\)'
)
res
=
$(
echo
"if (
$val
$4
$
5
) 1"
| bc
)
res
=
$(
echo
"if (
$val
$4
$
fuzz
) 1"
| bc
)
if
[
"
$res
"
!=
1
]
||
[
$size1
!=
$size2
]
;
then
echo
"
$psnr
"
return
1
...
...
@@ -38,11 +38,11 @@ do_tiny_psnr(){
}
oneoff
(){
do_tiny_psnr
"
$1
"
"
$2
"
MAXDIFF
'<='
${
fuzz
:-
1
}
do_tiny_psnr
"
$1
"
"
$2
"
MAXDIFF
'<='
}
stddev
(){
do_tiny_psnr
"
$1
"
"
$2
"
stddev
'<='
${
fuzz
:-
1
}
do_tiny_psnr
"
$1
"
"
$2
"
stddev
'<='
}
run
(){
...
...
@@ -122,8 +122,8 @@ fi
if
test
-e
"
$ref
"
;
then
case
$cmp
in
diff
)
diff
-u
-w
"
$ref
"
"
$outfile
"
>
$cmpfile
;;
oneoff
)
oneoff
"
$ref
"
"
$outfile
"
"
$fuzz
"
>
$cmpfile
;;
stddev
)
stddev
"
$ref
"
"
$outfile
"
"
$fuzz
"
>
$cmpfile
;;
oneoff
)
oneoff
"
$ref
"
"
$outfile
"
>
$cmpfile
;;
stddev
)
stddev
"
$ref
"
"
$outfile
"
>
$cmpfile
;;
null
)
cat
"
$outfile
"
>
$cmpfile
;;
esac
cmperr
=
$?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment