Skip to content

Commit

Permalink
x86: xvid_idct: port MMX iDCT to yasm
Browse files Browse the repository at this point in the history
Also reduce the table duplication with SSE2 code, remove duplicated
macro parameters.

Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
cgisquet authored and michaelni committed Mar 14, 2015
1 parent 7b05b50 commit c3bf527
Show file tree
Hide file tree
Showing 5 changed files with 484 additions and 564 deletions.
1 change: 0 additions & 1 deletion libavcodec/x86/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ MMX-OBJS-$(CONFIG_FDCTDSP) += x86/fdct.o
MMX-OBJS-$(CONFIG_IDCTDSP) += x86/simple_idct.o

# decoders/encoders
MMX-OBJS-$(CONFIG_MPEG4_DECODER) += x86/xvididct_mmx.o
MMX-OBJS-$(CONFIG_SNOW_DECODER) += x86/snowdsp.o
MMX-OBJS-$(CONFIG_SNOW_ENCODER) += x86/snowdsp.o
MMX-OBJS-$(CONFIG_VC1_DECODER) += x86/vc1dsp_mmx.o
Expand Down
8 changes: 3 additions & 5 deletions libavcodec/x86/dct-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,9 @@ static const struct algo idct_tab_arch[] = {
#if HAVE_MMX_INLINE
{ "SIMPLE-MMX", ff_simple_idct_mmx, FF_IDCT_PERM_SIMPLE, AV_CPU_FLAG_MMX },
#endif
#if CONFIG_MPEG4_DECODER
#if HAVE_MMX_INLINE
#if CONFIG_MPEG4_DECODER && HAVE_YASM
#if ARCH_X86_32
{ "XVID-MMX", ff_xvid_idct_mmx, FF_IDCT_PERM_NONE, AV_CPU_FLAG_MMX, 1 },
#endif
#if HAVE_MMXEXT_INLINE
{ "XVID-MMXEXT", ff_xvid_idct_mmxext, FF_IDCT_PERM_NONE, AV_CPU_FLAG_MMXEXT, 1 },
#endif
#if HAVE_SSE2_EXTERNAL
Expand All @@ -73,7 +71,7 @@ static const struct algo idct_tab_arch[] = {
{ "PR-SSE2", ff_prores_idct_put_10_sse2_wrap, FF_IDCT_PERM_TRANSPOSE, AV_CPU_FLAG_SSE2, 1 },
#endif
#endif
#endif /* CONFIG_MPEG4_DECODER */
#endif /* CONFIG_MPEG4_DECODER && HAVE_YASM */
{ 0 }
};

Expand Down
Loading

0 comments on commit c3bf527

Please sign in to comment.