Commit 5c65aed7 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '391ecc96'

* commit '391ecc96':
  x86: mpegvideoenc: Change SIMD optimization name suffixes to lowercase

Conflicts:
	libavcodec/x86/mpegvideoenc.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents cf8c44fc 391ecc96
...@@ -36,8 +36,8 @@ DECLARE_ALIGNED(16, static uint16_t, inv_zigzag_direct16)[64]; ...@@ -36,8 +36,8 @@ DECLARE_ALIGNED(16, static uint16_t, inv_zigzag_direct16)[64];
#define COMPILE_TEMPLATE_MMXEXT 0 #define COMPILE_TEMPLATE_MMXEXT 0
#define COMPILE_TEMPLATE_SSE2 0 #define COMPILE_TEMPLATE_SSE2 0
#define COMPILE_TEMPLATE_SSSE3 0 #define COMPILE_TEMPLATE_SSSE3 0
#define RENAME(a) a ## _MMX #define RENAME(a) a ## _mmx
#define RENAMEl(a) a ## _mmx #define RENAME_FDCT(a) a ## _mmx
#include "mpegvideoenc_template.c" #include "mpegvideoenc_template.c"
#endif /* HAVE_MMX_INLINE */ #endif /* HAVE_MMX_INLINE */
...@@ -49,9 +49,9 @@ DECLARE_ALIGNED(16, static uint16_t, inv_zigzag_direct16)[64]; ...@@ -49,9 +49,9 @@ DECLARE_ALIGNED(16, static uint16_t, inv_zigzag_direct16)[64];
#define COMPILE_TEMPLATE_SSE2 0 #define COMPILE_TEMPLATE_SSE2 0
#define COMPILE_TEMPLATE_SSSE3 0 #define COMPILE_TEMPLATE_SSSE3 0
#undef RENAME #undef RENAME
#undef RENAMEl #undef RENAME_FDCT
#define RENAME(a) a ## _MMXEXT #define RENAME(a) a ## _mmxext
#define RENAMEl(a) a ## _mmxext #define RENAME_FDCT(a) a ## _mmxext
#include "mpegvideoenc_template.c" #include "mpegvideoenc_template.c"
#endif /* HAVE_MMXEXT_INLINE */ #endif /* HAVE_MMXEXT_INLINE */
...@@ -63,9 +63,9 @@ DECLARE_ALIGNED(16, static uint16_t, inv_zigzag_direct16)[64]; ...@@ -63,9 +63,9 @@ DECLARE_ALIGNED(16, static uint16_t, inv_zigzag_direct16)[64];
#define COMPILE_TEMPLATE_SSE2 1 #define COMPILE_TEMPLATE_SSE2 1
#define COMPILE_TEMPLATE_SSSE3 0 #define COMPILE_TEMPLATE_SSSE3 0
#undef RENAME #undef RENAME
#undef RENAMEl #undef RENAME_FDCT
#define RENAME(a) a ## _SSE2 #define RENAME(a) a ## _sse2
#define RENAMEl(a) a ## _sse2 #define RENAME_FDCT(a) a ## _sse2
#include "mpegvideoenc_template.c" #include "mpegvideoenc_template.c"
#endif /* HAVE_SSE2_INLINE */ #endif /* HAVE_SSE2_INLINE */
...@@ -77,9 +77,9 @@ DECLARE_ALIGNED(16, static uint16_t, inv_zigzag_direct16)[64]; ...@@ -77,9 +77,9 @@ DECLARE_ALIGNED(16, static uint16_t, inv_zigzag_direct16)[64];
#define COMPILE_TEMPLATE_SSE2 1 #define COMPILE_TEMPLATE_SSE2 1
#define COMPILE_TEMPLATE_SSSE3 1 #define COMPILE_TEMPLATE_SSSE3 1
#undef RENAME #undef RENAME
#undef RENAMEl #undef RENAME_FDCT
#define RENAME(a) a ## _SSSE3 #define RENAME(a) a ## _ssse3
#define RENAMEl(a) a ## _sse2 #define RENAME_FDCT(a) a ## _sse2
#include "mpegvideoenc_template.c" #include "mpegvideoenc_template.c"
#endif /* HAVE_SSSE3_INLINE */ #endif /* HAVE_SSSE3_INLINE */
...@@ -210,26 +210,26 @@ av_cold void ff_dct_encode_init_x86(MpegEncContext *s) ...@@ -210,26 +210,26 @@ av_cold void ff_dct_encode_init_x86(MpegEncContext *s)
int cpu_flags = av_get_cpu_flags(); int cpu_flags = av_get_cpu_flags();
if (INLINE_MMX(cpu_flags)) { if (INLINE_MMX(cpu_flags)) {
#if HAVE_6REGS #if HAVE_6REGS
s->dct_quantize = dct_quantize_MMX; s->dct_quantize = dct_quantize_mmx;
#endif #endif
s->denoise_dct = denoise_dct_mmx; s->denoise_dct = denoise_dct_mmx;
} }
#endif #endif
#if HAVE_6REGS && HAVE_MMXEXT_INLINE #if HAVE_6REGS && HAVE_MMXEXT_INLINE
if (INLINE_MMXEXT(cpu_flags)) if (INLINE_MMXEXT(cpu_flags))
s->dct_quantize = dct_quantize_MMXEXT; s->dct_quantize = dct_quantize_mmxext;
#endif #endif
#if HAVE_SSE2_INLINE #if HAVE_SSE2_INLINE
if (INLINE_SSE2(cpu_flags)) { if (INLINE_SSE2(cpu_flags)) {
#if HAVE_6REGS #if HAVE_6REGS
s->dct_quantize = dct_quantize_SSE2; s->dct_quantize = dct_quantize_sse2;
#endif #endif
s->denoise_dct = denoise_dct_sse2; s->denoise_dct = denoise_dct_sse2;
} }
#endif #endif
#if HAVE_6REGS && HAVE_SSSE3_INLINE #if HAVE_6REGS && HAVE_SSSE3_INLINE
if (INLINE_SSSE3(cpu_flags)) if (INLINE_SSSE3(cpu_flags))
s->dct_quantize = dct_quantize_SSSE3; s->dct_quantize = dct_quantize_ssse3;
#endif #endif
} }
} }
...@@ -109,7 +109,7 @@ static int RENAME(dct_quantize)(MpegEncContext *s, ...@@ -109,7 +109,7 @@ static int RENAME(dct_quantize)(MpegEncContext *s,
av_assert2((7&(int)(&temp_block[0])) == 0); //did gcc align it correctly? av_assert2((7&(int)(&temp_block[0])) == 0); //did gcc align it correctly?
//s->fdct (block); //s->fdct (block);
RENAMEl(ff_fdct) (block); //cannot be anything else ... RENAME_FDCT(ff_fdct)(block); // cannot be anything else ...
if(s->dct_error_sum) if(s->dct_error_sum)
s->denoise_dct(s, block); s->denoise_dct(s, block);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment