Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
a96c176a
Commit
a96c176a
authored
14 years ago
by
Luca Barbato
Browse files
Options
Downloads
Patches
Plain Diff
fate: simplify regression-funcs.sh
Factor ffmpeg calls using run_ffmpeg()
parent
7851eb68
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/regression-funcs.sh
+4
-8
4 additions, 8 deletions
tests/regression-funcs.sh
with
4 additions
and
8 deletions
tests/regression-funcs.sh
+
4
−
8
View file @
a96c176a
...
@@ -66,8 +66,7 @@ do_ffmpeg()
...
@@ -66,8 +66,7 @@ do_ffmpeg()
f
=
"
$1
"
f
=
"
$1
"
shift
shift
set
--
$*
${
target_path
}
/
$f
set
--
$*
${
target_path
}
/
$f
$echov
$ffmpeg
$FFMPEG_OPTS
$*
run_ffmpeg
-benchmark
$*
>
$bench
$ffmpeg
$FFMPEG_OPTS
-benchmark
$*
>
$bench
do_md5sum
$f
>>
$logfile
do_md5sum
$f
>>
$logfile
if
[
$f
=
$raw_dst
]
;
then
if
[
$f
=
$raw_dst
]
;
then
$tiny_psnr
$f
$raw_ref
>>
$logfile
$tiny_psnr
$f
$raw_ref
>>
$logfile
...
@@ -85,8 +84,7 @@ do_ffmpeg_nomd5()
...
@@ -85,8 +84,7 @@ do_ffmpeg_nomd5()
f
=
"
$1
"
f
=
"
$1
"
shift
shift
set
--
$*
${
target_path
}
/
$f
set
--
$*
${
target_path
}
/
$f
$echov
$ffmpeg
$FFMPEG_OPTS
$*
run_ffmpeg
-benchmark
$*
>
$bench
$ffmpeg
$FFMPEG_OPTS
-benchmark
$*
>
$bench
if
[
$f
=
$raw_dst
]
;
then
if
[
$f
=
$raw_dst
]
;
then
$tiny_psnr
$f
$raw_ref
>>
$logfile
$tiny_psnr
$f
$raw_ref
>>
$logfile
elif
[
$f
=
$pcm_dst
]
;
then
elif
[
$f
=
$pcm_dst
]
;
then
...
@@ -102,8 +100,7 @@ do_ffmpeg_crc()
...
@@ -102,8 +100,7 @@ do_ffmpeg_crc()
{
{
f
=
"
$1
"
f
=
"
$1
"
shift
shift
$echov
$ffmpeg
$FFMPEG_OPTS
$*
-f
crc
"
$target_crcfile
"
run_ffmpeg
$*
-f
crc
"
$target_crcfile
"
$ffmpeg
$FFMPEG_OPTS
$*
-f
crc
"
$target_crcfile
"
echo
"
$f
$(
cat
$crcfile
)
"
>>
$logfile
echo
"
$f
$(
cat
$crcfile
)
"
>>
$logfile
}
}
...
@@ -111,8 +108,7 @@ do_ffmpeg_nocheck()
...
@@ -111,8 +108,7 @@ do_ffmpeg_nocheck()
{
{
f
=
"
$1
"
f
=
"
$1
"
shift
shift
$echov
$ffmpeg
$FFMPEG_OPTS
$*
run_ffmpeg
-benchmark
$*
>
$bench
$ffmpeg
$FFMPEG_OPTS
-benchmark
$*
>
$bench
expr
"
$(
cat
$bench
)
"
:
'.*utime=\(.*s\)'
>
$bench2
expr
"
$(
cat
$bench
)
"
:
'.*utime=\(.*s\)'
>
$bench2
echo
$(
cat
$bench2
)
$f
>>
$benchfile
echo
$(
cat
$bench2
)
$f
>>
$benchfile
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment