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
55static av_cold int wmv2_encode_init(AVCodecContext *avctx){55static av_cold int wmv2_encode_init(AVCodecContext *avctx){
56 Wmv2Context * const w= avctx->priv_data;56 Wmv2Context * const w= avctx->priv_data;
57 57
58 if(avctx->idct_algo==FF_IDCT_AUTO){
59 avctx->idct_algo=FF_IDCT_WMV2;
60 }
61
58 if(ff_MPV_encode_init(avctx) < 0)62 if(ff_MPV_encode_init(avctx) < 0)
59 return -1;63 return -1;
60 64
tests/fate-run.sh+2−1
@@ -128,6 +128,7 @@ enc_dec(){ · 127 unmodified lines
128 enc_opt=$4128 enc_opt=$4
129 dec_fmt=$5129 dec_fmt=$5
130 dec_opt=$6130 dec_opt=$6
131 ddc_opt=$8
131 encfile="${outdir}/${test}.${enc_fmt}"132 encfile="${outdir}/${test}.${enc_fmt}"
132 decfile="${outdir}/${test}.out.${dec_fmt}"133 decfile="${outdir}/${test}.out.${dec_fmt}"
133 cleanfiles="$cleanfiles $decfile"134 cleanfiles="$cleanfiles $decfile"
@@ -139,7 +140,7 @@ enc_dec(){ · 5 unmodified lines
139 -f $enc_fmt -y $tencfile || return140 -f $enc_fmt -y $tencfile || return
140 do_md5sum $encfile141 do_md5sum $encfile
141 echo $(wc -c $encfile)142 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 \
143 -f $dec_fmt -y $tdecfile || return144 -f $dec_fmt -y $tdecfile || return
144 do_md5sum $decfile145 do_md5sum $decfile
145 tests/tiny_psnr $srcfile $decfile $cmp_unit $cmp_shift146 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
2fate-vsynth2-%: SRC = tests/data/vsynth2.yuv2fate-vsynth2-%: SRC = tests/data/vsynth2.yuv
3fate-vsynth%: CODEC = $(word 3, $(subst -, ,$(@)))3fate-vsynth%: CODEC = $(word 3, $(subst -, ,$(@)))
4fate-vsynth%: FMT = avi4fate-vsynth%: FMT = avi
5fate-vsynth%: CMD = enc_dec "rawvideo -s 352x288 -pix_fmt yuv420p" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-s 352x288 -pix_fmt yuv420p $(DECOPTS)" -keep5fate-vsynth%: CMD = enc_dec "rawvideo -s 352x288 -pix_fmt yuv420p" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-s 352x288 -pix_fmt yuv420p $(DECOPTS)" -keep "$(DDCOPTS)"
6fate-vsynth%: CMP_UNIT = 16fate-vsynth%: CMP_UNIT = 1
7fate-vsynth%: REF = $(SRC_PATH)/tests/ref/vsynth/$(@:fate-%=%)7fate-vsynth%: REF = $(SRC_PATH)/tests/ref/vsynth/$(@:fate-%=%)
8 8
@@ -218,7 +218,8 @@ FATE_VCODEC-$(call ENCDEC, WMV1, AVI) += wmv1 · 209 unmodified lines
218fate-vsynth%-wmv1: ENCOPTS = -qscale 10218fate-vsynth%-wmv1: ENCOPTS = -qscale 10
219 219
220FATE_VCODEC-$(call ENCDEC, WMV2, AVI) += wmv2220FATE_VCODEC-$(call ENCDEC, WMV2, AVI) += wmv2
221fate-vsynth%-wmv2: ENCOPTS = -qscale 10221fate-vsynth%-wmv2: DDCOPTS = -idct auto
222fate-vsynth%-wmv2: ENCOPTS = -qscale 10 -idct auto
222 223
223FATE_VCODEC-$(call ENCDEC, RAWVIDEO, AVI) += yuv224FATE_VCODEC-$(call ENCDEC, RAWVIDEO, AVI) += yuv
224fate-vsynth%-yuv: CODEC = rawvideo225fate-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