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
03b052c0
Commit
03b052c0
authored
Apr 15, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fate: Invoke standard lavfi tests through fate-run.sh
parent
c1401054
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
42 additions
and
28 deletions
+42
-28
fate-run.sh
tests/fate-run.sh
+10
-0
avfilter.mak
tests/fate/avfilter.mak
+1
-11
filter-video.mak
tests/fate/filter-video.mak
+31
-0
lavfi-regression.sh
tests/lavfi-regression.sh
+0
-17
filter-crop
tests/ref/fate/filter-crop
+0
-0
filter-crop_scale
tests/ref/fate/filter-crop_scale
+0
-0
filter-crop_scale_vflip
tests/ref/fate/filter-crop_scale_vflip
+0
-0
filter-crop_vflip
tests/ref/fate/filter-crop_vflip
+0
-0
filter-null
tests/ref/fate/filter-null
+0
-0
filter-scale200
tests/ref/fate/filter-scale200
+0
-0
filter-scale500
tests/ref/fate/filter-scale500
+0
-0
filter-vflip
tests/ref/fate/filter-vflip
+0
-0
filter-vflip_crop
tests/ref/fate/filter-vflip_crop
+0
-0
filter-vflip_vflip
tests/ref/fate/filter-vflip_vflip
+0
-0
No files found.
tests/fate-run.sh
View file @
03b052c0
...
...
@@ -161,6 +161,16 @@ lavfitest(){
regtest lavfi lavfi tests/vsynth1
}
video_filter
(){
filters
=
$1
shift
label
=
${
test
#filter-
}
raw_src
=
"
${
target_path
}
/tests/vsynth1/%02d.pgm"
printf
'%-20s'
$label
avconv
$DEC_OPTS
-f
image2
-vcodec
pgmyuv
-i
$raw_src
\
$FLAGS
$ENC_OPTS
-vf
"
$filters
"
-vcodec
rawvideo
$*
-f
nut md5:
}
mkdir
-p
"
$outdir
"
exec
3>&2
...
...
tests/fate/avfilter.mak
View file @
03b052c0
FATE_LAVFI = fate-lavfi-crop \
fate-lavfi-crop_scale \
fate-lavfi-crop_scale_vflip \
fate-lavfi-crop_vflip \
fate-lavfi-null \
fate-lavfi-pixdesc \
FATE_LAVFI = fate-lavfi-pixdesc \
fate-lavfi-pixfmts_copy \
fate-lavfi-pixfmts_crop \
fate-lavfi-pixfmts_hflip \
...
...
@@ -11,11 +6,6 @@ FATE_LAVFI = fate-lavfi-crop \
fate-lavfi-pixfmts_pad \
fate-lavfi-pixfmts_scale \
fate-lavfi-pixfmts_vflip \
fate-lavfi-scale200 \
fate-lavfi-scale500 \
fate-lavfi-vflip \
fate-lavfi-vflip_crop \
fate-lavfi-vflip_vflip \
$(FATE_LAVFI): $(VREF) libavfilter/filtfmts-test$(EXESUF)
$(FATE_LAVFI): CMD = lavfitest
...
...
tests/fate/filter-video.mak
View file @
03b052c0
...
...
@@ -46,6 +46,37 @@ FATE_FILTER_VSYNTH-$(CONFIG_UNSHARP_FILTER) += fate-filter-unsharp
fate-filter-unsharp: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf unsharp
FATE_FILTER_VSYNTH-$(CONFIG_CROP_FILTER) += fate-filter-crop
fate-filter-crop: CMD = video_filter "crop=iw-100:ih-100:100:100"
FATE_FILTER_VSYNTH-$(call ALLYES, CROP_FILTER SCALE_FILTER) += fate-filter-crop_scale
fate-filter-crop_scale: CMD = video_filter "crop=iw-100:ih-100:100:100,scale=400:-1"
FATE_FILTER_VSYNTH-$(call ALLYES, CROP_FILTER SCALE_FILTER VFLIP_FILTER) += fate-filter-crop_scale_vflip
fate-filter-crop_scale_vflip: CMD = video_filter "null,null,crop=iw-200:ih-200:200:200,crop=iw-20:ih-20:20:20,scale=200:200,scale=250:250,vflip,vflip,null,scale=200:200,crop=iw-100:ih-100:100:100,vflip,scale=200:200,null,vflip,crop=iw-100:ih-100:100:100,null"
FATE_FILTER_VSYNTH-$(call ALLYES, CROP_FILTER VFLIP_FILTER) += fate-filter-crop_vflip
fate-filter-crop_vflip: CMD = video_filter "crop=iw-100:ih-100:100:100,vflip"
FATE_FILTER_VSYNTH-$(CONFIG_NULL_FILTER) += fate-filter-null
fate-filter-null: CMD = video_filter "null"
FATE_FILTER_VSYNTH-$(CONFIG_SCALE_FILTER) += fate-filter-scale200
fate-filter-scale200: CMD = video_filter "scale=200:200"
FATE_FILTER_VSYNTH-$(CONFIG_SCALE_FILTER) += fate-filter-scale500
fate-filter-scale500: CMD = video_filter "scale=500:500"
FATE_FILTER_VSYNTH-$(CONFIG_VFLIP_FILTER) += fate-filter-vflip
fate-filter-vflip: CMD = video_filter "vflip"
FATE_FILTER_VSYNTH-$(call ALLYES, CROP_FILTER VFLIP_FILTER) += fate-filter-vflip_crop
fate-filter-vflip_crop: CMD = video_filter "vflip,crop=iw-100:ih-100:100:100"
FATE_FILTER_VSYNTH-$(CONFIG_VFLIP_FILTER) += fate-filter-vflip_vflip
fate-filter-vflip_vflip: CMD = video_filter "vflip,vflip"
$(FATE_FILTER_VSYNTH-yes): $(VREF)
$(FATE_FILTER_VSYNTH-yes): SRC = $(TARGET_PATH)/tests/vsynth1/%02d.pgm
...
...
tests/lavfi-regression.sh
View file @
03b052c0
...
...
@@ -20,23 +20,6 @@ do_video_filter() {
$ENC_OPTS
-vf
"
$filters
"
-vcodec
rawvideo
$*
-f
nut md5:
}
do_lavfi
()
{
if
[
$test
=
$1
]
;
then
do_video_filter
$test
"
$2
"
fi
}
do_lavfi
"crop"
"crop=iw-100:ih-100:100:100"
do_lavfi
"crop_scale"
"crop=iw-100:ih-100:100:100,scale=400:-1"
do_lavfi
"crop_scale_vflip"
"null,null,crop=iw-200:ih-200:200:200,crop=iw-20:ih-20:20:20,scale=200:200,scale=250:250,vflip,vflip,null,scale=200:200,crop=iw-100:ih-100:100:100,vflip,scale=200:200,null,vflip,crop=iw-100:ih-100:100:100,null"
do_lavfi
"crop_vflip"
"crop=iw-100:ih-100:100:100,vflip"
do_lavfi
"null"
"null"
do_lavfi
"scale200"
"scale=200:200"
do_lavfi
"scale500"
"scale=500:500"
do_lavfi
"vflip"
"vflip"
do_lavfi
"vflip_crop"
"vflip,crop=iw-100:ih-100:100:100"
do_lavfi
"vflip_vflip"
"vflip,vflip"
do_lavfi_pixfmts
(){
test
${
test
%_[bl]e
}
=
pixfmts_
$1
||
return
0
filter
=
$1
...
...
tests/ref/
lavfi/
crop
→
tests/ref/
fate/filter-
crop
View file @
03b052c0
File moved
tests/ref/
lavfi/
crop_scale
→
tests/ref/
fate/filter-
crop_scale
View file @
03b052c0
File moved
tests/ref/
lavfi/
crop_scale_vflip
→
tests/ref/
fate/filter-
crop_scale_vflip
View file @
03b052c0
File moved
tests/ref/
lavfi/
crop_vflip
→
tests/ref/
fate/filter-
crop_vflip
View file @
03b052c0
File moved
tests/ref/
lavfi/
null
→
tests/ref/
fate/filter-
null
View file @
03b052c0
File moved
tests/ref/
lavfi/
scale200
→
tests/ref/
fate/filter-
scale200
View file @
03b052c0
File moved
tests/ref/
lavfi/
scale500
→
tests/ref/
fate/filter-
scale500
View file @
03b052c0
File moved
tests/ref/
lavfi/
vflip
→
tests/ref/
fate/filter-
vflip
View file @
03b052c0
File moved
tests/ref/
lavfi/
vflip_crop
→
tests/ref/
fate/filter-
vflip_crop
View file @
03b052c0
File moved
tests/ref/
lavfi/
vflip_vflip
→
tests/ref/
fate/filter-
vflip_vflip
View file @
03b052c0
File moved
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