History

fate: Use wmv2 IDCT for wmv2 tests

Ronald S. Bultje committed 13 years ago

Commit ce378f01 parent 1768e433 files · +9 −3Browse files

Unified · Split

3 files
  1. libavcodec/wmv2enc.c +4 −0
  2. tests/fate-run.sh +2 −1
  3. tests/fate/vcodec.mak +3 −2
libavcodec/wmv2enc.c+4−0
@@ -55,6 +55,10 @@ static int encode_ext_header(Wmv2Context *w){ · 54 unmodified lines
5555 static av_cold int wmv2_encode_init(AVCodecContext *avctx){
5656 Wmv2Context * const w= avctx->priv_data;
5757
58+ if(avctx->idct_algo==FF_IDCT_AUTO){
59+ avctx->idct_algo=FF_IDCT_WMV2;
60+ }
61+
5862 if(ff_MPV_encode_init(avctx) < 0)
5963 return -1;
6064
tests/fate-run.sh+2−1
@@ -128,6 +128,7 @@ enc_dec(){ · 127 unmodified lines
128128 enc_opt=$4
129129 dec_fmt=$5
130130 dec_opt=$6
131+ ddc_opt=$8
131132 encfile="${outdir}/${test}.${enc_fmt}"
132133 decfile="${outdir}/${test}.out.${dec_fmt}"
133134 cleanfiles="$cleanfiles $decfile"
@@ -139,7 +140,7 @@ enc_dec(){ · 5 unmodified lines
139140 -f $enc_fmt -y $tencfile || return
140141 do_md5sum $encfile
141142 echo $(wc -c $encfile)
142− avconv $DEC_OPTS -i $tencfile $ENC_OPTS $dec_opt $FLAGS \
143+ avconv $DEC_OPTS $ddc_opt -i $tencfile $ENC_OPTS $dec_opt $FLAGS \
143144 -f $dec_fmt -y $tdecfile || return
144145 do_md5sum $decfile
145146 tests/tiny_psnr $srcfile $decfile $cmp_unit $cmp_shift
tests/fate/vcodec.mak+3−2
@@ -2,7 +2,7 @@ fate-vsynth1-%: SRC = tests/data/vsynth1.yuv · 1 unmodified line
22 fate-vsynth2-%: SRC = tests/data/vsynth2.yuv
33 fate-vsynth%: CODEC = $(word 3, $(subst -, ,$(@)))
44 fate-vsynth%: FMT = avi
5−fate-vsynth%: CMD = enc_dec "rawvideo -s 352x288 -pix_fmt yuv420p" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-s 352x288 -pix_fmt yuv420p $(DECOPTS)" -keep
5+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)"
66 fate-vsynth%: CMP_UNIT = 1
77 fate-vsynth%: REF = $(SRC_PATH)/tests/ref/vsynth/$(@:fate-%=%)
88
@@ -218,7 +218,8 @@ FATE_VCODEC-$(call ENCDEC, WMV1, AVI) += wmv1 · 209 unmodified lines
218218 fate-vsynth%-wmv1: ENCOPTS = -qscale 10
219219
220220 FATE_VCODEC-$(call ENCDEC, WMV2, AVI) += wmv2
221−fate-vsynth%-wmv2: ENCOPTS = -qscale 10
221+fate-vsynth%-wmv2: DDCOPTS = -idct auto
222+fate-vsynth%-wmv2: ENCOPTS = -qscale 10 -idct auto
222223
223224 FATE_VCODEC-$(call ENCDEC, RAWVIDEO, AVI) += yuv
224225 fate-vsynth%-yuv: CODEC = rawvideo

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t