History

Merge commit 'ce378f0dd0c4e5350b3280e6b3e8d6b46fe4b0a3'

* commit 'ce378f0dd0c4e5350b3280e6b3e8d6b46fe4b0a3': fate: Use wmv2 IDCT for wmv2 tests vorbisdsp: change block_size type from int to intptr_t. Conflicts: tests/fate-run.sh tests/fate/vcodec.mak

Michael Niedermayer committed 13 years ago

Commit cf4515e2 parents 6ea8a83 ce378f09 files · +23 −11Browse files

Unified · Split

9 files
  1. libavcodec/arm/vorbisdsp_init_arm.c +2 −1
  2. libavcodec/ppc/vorbisdsp_altivec.c +1 −1
  3. libavcodec/vorbis.h +1 −1
  4. libavcodec/vorbisdec.c +1 −1
  5. libavcodec/vorbisdsp.h +4 −1
  6. libavcodec/wmv2enc.c +4 −0
  7. libavcodec/x86/vorbisdsp_init.c +4 −2
  8. tests/fate-run.sh +2 −1
  9. tests/fate/vcodec.mak +4 −3
libavcodec/arm/vorbisdsp_init_arm.c+2−1
@@ -24,7 +24,8 @@ · 23 unmodified lines
2424 #include "libavutil/arm/cpu.h"
2525 #include "libavcodec/vorbisdsp.h"
2626
27−void ff_vorbis_inverse_coupling_neon(float *mag, float *ang, int blocksize);
27+void ff_vorbis_inverse_coupling_neon(float *mag, float *ang,
28+ intptr_t blocksize);
2829
2930 void ff_vorbisdsp_init_arm(VorbisDSPContext *c)
3031 {
libavcodec/ppc/vorbisdsp_altivec.c+1−1
@@ -27,7 +27,7 @@ · 26 unmodified lines
2727
2828 #if HAVE_ALTIVEC
2929 static void vorbis_inverse_coupling_altivec(float *mag, float *ang,
30− int blocksize)
30+ intptr_t blocksize)
3131 {
3232 int i;
3333 vector float m, a;
libavcodec/vorbis.h+1−1
@@ -43,7 +43,7 @@ int ff_vorbis_len2vlc(uint8_t *bits, uint32_t *codes, unsigned num); · 42 unmodified lines
4343 void ff_vorbis_floor1_render_list(vorbis_floor1_entry * list, int values,
4444 uint16_t *y_list, int *flag,
4545 int multiplier, float * out, int samples);
46−void ff_vorbis_inverse_coupling(float *mag, float *ang, int blocksize);
46+void ff_vorbis_inverse_coupling(float *mag, float *ang, intptr_t blocksize);
4747
4848 #define ilog(i) av_log2(2*(i))
4949
libavcodec/vorbisdec.c+1−1
@@ -1460,7 +1460,7 @@ static inline int vorbis_residue_decode(vorbis_context *vc, vorbis_residue *vr, · 1459 unmodified lines
14601460 }
14611461 }
14621462
1463−void ff_vorbis_inverse_coupling(float *mag, float *ang, int blocksize)
1463+void ff_vorbis_inverse_coupling(float *mag, float *ang, intptr_t blocksize)
14641464 {
14651465 int i;
14661466 for (i = 0; i < blocksize; i++) {
libavcodec/vorbisdsp.h+4−1
@@ -19,9 +19,12 @@ · 18 unmodified lines
1919 #ifndef AVCODEC_VORBISDSP_H
2020 #define AVCODEC_VORBISDSP_H
2121
22+#include <stdint.h>
23+
2224 typedef struct VorbisDSPContext {
2325 /* assume len is a multiple of 4, and arrays are 16-byte aligned */
24− void (*vorbis_inverse_coupling)(float *mag, float *ang, int blocksize);
26+ void (*vorbis_inverse_coupling)(float *mag, float *ang,
27+ intptr_t blocksize);
2528 } VorbisDSPContext;
2629
2730 void ff_vorbisdsp_init(VorbisDSPContext *dsp);
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
libavcodec/x86/vorbisdsp_init.c+4−2
@@ -25,7 +25,8 @@ · 24 unmodified lines
2525
2626 #if HAVE_INLINE_ASM
2727 #if ARCH_X86_32
28−static void vorbis_inverse_coupling_3dnow(float *mag, float *ang, int blocksize)
28+static void vorbis_inverse_coupling_3dnow(float *mag, float *ang,
29+ intptr_t blocksize)
2930 {
3031 int i;
3132 __asm__ volatile ("pxor %%mm7, %%mm7":);
@@ -54,7 +55,8 @@ static void vorbis_inverse_coupling_3dnow(float *mag, float *ang, int blocksize) · 22 unmodified lines
5455 }
5556 #endif
5657
57−static void vorbis_inverse_coupling_sse(float *mag, float *ang, int blocksize)
58+static void vorbis_inverse_coupling_sse(float *mag, float *ang,
59+ intptr_t blocksize)
5860 {
5961 int i;
6062
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− ffmpeg $8 $DEC_OPTS -i $tencfile $ENC_OPTS $dec_opt $FLAGS \
143+ ffmpeg $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+4−3
@@ -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 $(RAWDECOPTS)" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-s 352x288 -pix_fmt yuv420p -vsync 0 $(DECOPTS)" -keep "$(DECINOPTS)"
5+fate-vsynth%: CMD = enc_dec "rawvideo -s 352x288 -pix_fmt yuv420p $(RAWDECOPTS)" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-s 352x288 -pix_fmt yuv420p -vsync 0 $(DECOPTS)" -keep "$(DDCOPTS)"
66 fate-vsynth%: CMP_UNIT = 1
77 fate-vsynth%: REF = $(SRC_PATH)/tests/ref/vsynth/$(@:fate-%=%)
88
@@ -91,7 +91,7 @@ fate-vsynth%-jpegls: DECOPTS = -sws_flags area · 82 unmodified lines
9191
9292 FATE_VCODEC-$(call ENCDEC, JPEG2000, AVI) += j2k
9393 fate-vsynth%-j2k: ENCOPTS = -qscale 7 -strict experimental -pix_fmt rgb24
94−fate-vsynth%-j2k: DECINOPTS = -vcodec j2k -strict experimental
94+fate-vsynth%-j2k: DDCOPTS = -vcodec j2k -strict experimental
9595
9696 FATE_VCODEC-$(call ENCDEC, LJPEG MJPEG, AVI) += ljpeg
9797 fate-vsynth%-ljpeg: ENCOPTS = -strict -1
@@ -268,7 +268,8 @@ FATE_VCODEC-$(call ENCDEC, WMV1, AVI) += wmv1 · 170 unmodified lines
268268 fate-vsynth%-wmv1: ENCOPTS = -qscale 10
269269
270270 FATE_VCODEC-$(call ENCDEC, WMV2, AVI) += wmv2
271−fate-vsynth%-wmv2: ENCOPTS = -qscale 10
271+fate-vsynth%-wmv2: DDCOPTS = -idct auto
272+fate-vsynth%-wmv2: ENCOPTS = -qscale 10 -idct auto
272273
273274 FATE_VCODEC-$(call ENCDEC, RAWVIDEO, AVI) += yuv
274275 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