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
a96c176a
Commit
a96c176a
authored
Mar 21, 2011
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fate: simplify regression-funcs.sh
Factor ffmpeg calls using run_ffmpeg()
parent
7851eb68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
regression-funcs.sh
tests/regression-funcs.sh
+4
-8
No files found.
tests/regression-funcs.sh
View file @
a96c176a
...
...
@@ -66,8 +66,7 @@ do_ffmpeg()
f
=
"
$1
"
shift
set
--
$*
${
target_path
}
/
$f
$echov
$ffmpeg
$FFMPEG_OPTS
$*
$ffmpeg
$FFMPEG_OPTS
-benchmark
$*
>
$bench
run_ffmpeg
-benchmark
$*
>
$bench
do_md5sum
$f
>>
$logfile
if
[
$f
=
$raw_dst
]
;
then
$tiny_psnr
$f
$raw_ref
>>
$logfile
...
...
@@ -85,8 +84,7 @@ do_ffmpeg_nomd5()
f
=
"
$1
"
shift
set
--
$*
${
target_path
}
/
$f
$echov
$ffmpeg
$FFMPEG_OPTS
$*
$ffmpeg
$FFMPEG_OPTS
-benchmark
$*
>
$bench
run_ffmpeg
-benchmark
$*
>
$bench
if
[
$f
=
$raw_dst
]
;
then
$tiny_psnr
$f
$raw_ref
>>
$logfile
elif
[
$f
=
$pcm_dst
]
;
then
...
...
@@ -102,8 +100,7 @@ do_ffmpeg_crc()
{
f
=
"
$1
"
shift
$echov
$ffmpeg
$FFMPEG_OPTS
$*
-f
crc
"
$target_crcfile
"
$ffmpeg
$FFMPEG_OPTS
$*
-f
crc
"
$target_crcfile
"
run_ffmpeg
$*
-f
crc
"
$target_crcfile
"
echo
"
$f
$(
cat
$crcfile
)
"
>>
$logfile
}
...
...
@@ -111,8 +108,7 @@ do_ffmpeg_nocheck()
{
f
=
"
$1
"
shift
$echov
$ffmpeg
$FFMPEG_OPTS
$*
$ffmpeg
$FFMPEG_OPTS
-benchmark
$*
>
$bench
run_ffmpeg
-benchmark
$*
>
$bench
expr
"
$(
cat
$bench
)
"
:
'.*utime=\(.*s\)'
>
$bench2
echo
$(
cat
$bench2
)
$f
>>
$benchfile
}
...
...
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