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
ce378f0d
Commit
ce378f0d
authored
Jan 19, 2013
by
Ronald S. Bultje
Committed by
Luca Barbato
Jan 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fate: Use wmv2 IDCT for wmv2 tests
parent
1768e43c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
wmv2enc.c
libavcodec/wmv2enc.c
+4
-0
fate-run.sh
tests/fate-run.sh
+2
-1
vcodec.mak
tests/fate/vcodec.mak
+3
-2
No files found.
libavcodec/wmv2enc.c
View file @
ce378f0d
...
...
@@ -55,6 +55,10 @@ static int encode_ext_header(Wmv2Context *w){
static
av_cold
int
wmv2_encode_init
(
AVCodecContext
*
avctx
){
Wmv2Context
*
const
w
=
avctx
->
priv_data
;
if
(
avctx
->
idct_algo
==
FF_IDCT_AUTO
){
avctx
->
idct_algo
=
FF_IDCT_WMV2
;
}
if
(
ff_MPV_encode_init
(
avctx
)
<
0
)
return
-
1
;
...
...
tests/fate-run.sh
View file @
ce378f0d
...
...
@@ -128,6 +128,7 @@ enc_dec(){
enc_opt
=
$4
dec_fmt
=
$5
dec_opt
=
$6
ddc_opt
=
$8
encfile
=
"
${
outdir
}
/
${
test
}
.
${
enc_fmt
}
"
decfile
=
"
${
outdir
}
/
${
test
}
.out.
${
dec_fmt
}
"
cleanfiles
=
"
$cleanfiles
$decfile
"
...
...
@@ -139,7 +140,7 @@ enc_dec(){
-f
$enc_fmt
-y
$tencfile
||
return
do_md5sum
$encfile
echo
$(
wc
-c
$encfile
)
avconv
$DEC_OPTS
-i
$tencfile
$ENC_OPTS
$dec_opt
$FLAGS
\
avconv
$DEC_OPTS
$ddc_opt
-i
$tencfile
$ENC_OPTS
$dec_opt
$FLAGS
\
-f
$dec_fmt
-y
$tdecfile
||
return
do_md5sum
$decfile
tests/tiny_psnr
$srcfile
$decfile
$cmp_unit
$cmp_shift
...
...
tests/fate/vcodec.mak
View file @
ce378f0d
...
...
@@ -2,7 +2,7 @@ fate-vsynth1-%: SRC = tests/data/vsynth1.yuv
fate-vsynth2-%: SRC = tests/data/vsynth2.yuv
fate-vsynth%: CODEC = $(word 3, $(subst -, ,$(@)))
fate-vsynth%: FMT = avi
fate-vsynth%: CMD = enc_dec "rawvideo -s 352x288 -pix_fmt yuv420p" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-s 352x288 -pix_fmt yuv420p $(DECOPTS)" -keep
fate-vsynth%: CMD = enc_dec "rawvideo -s 352x288 -pix_fmt yuv420p" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-s 352x288 -pix_fmt yuv420p $(DECOPTS)" -keep
"$(DDCOPTS)"
fate-vsynth%: CMP_UNIT = 1
fate-vsynth%: REF = $(SRC_PATH)/tests/ref/vsynth/$(@:fate-%=%)
...
...
@@ -218,7 +218,8 @@ FATE_VCODEC-$(call ENCDEC, WMV1, AVI) += wmv1
fate-vsynth%-wmv1: ENCOPTS = -qscale 10
FATE_VCODEC-$(call ENCDEC, WMV2, AVI) += wmv2
fate-vsynth%-wmv2: ENCOPTS = -qscale 10
fate-vsynth%-wmv2: DDCOPTS = -idct auto
fate-vsynth%-wmv2: ENCOPTS = -qscale 10 -idct auto
FATE_VCODEC-$(call ENCDEC, RAWVIDEO, AVI) += yuv
fate-vsynth%-yuv: CODEC = rawvideo
...
...
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