mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
x86: fdct: Employ more specific ifdefs
This avoids building mmxext and sse2 code when disabled by configure.
This commit is contained in:
parent
9adbc3f3a1
commit
ce1e8045e0
1 changed files with 10 additions and 2 deletions
|
|
@ -34,7 +34,7 @@
|
||||||
#include "libavutil/x86/asm.h"
|
#include "libavutil/x86/asm.h"
|
||||||
#include "libavcodec/dct.h"
|
#include "libavcodec/dct.h"
|
||||||
|
|
||||||
#if HAVE_INLINE_ASM
|
#if HAVE_MMX_INLINE
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
|
|
@ -556,6 +556,10 @@ void ff_fdct_mmx(int16_t *block)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_MMX_INLINE */
|
||||||
|
|
||||||
|
#if HAVE_MMXEXT_INLINE
|
||||||
|
|
||||||
void ff_fdct_mmxext(int16_t *block)
|
void ff_fdct_mmxext(int16_t *block)
|
||||||
{
|
{
|
||||||
DECLARE_ALIGNED(8, int64_t, align_tmp)[16];
|
DECLARE_ALIGNED(8, int64_t, align_tmp)[16];
|
||||||
|
|
@ -574,6 +578,10 @@ void ff_fdct_mmxext(int16_t *block)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_MMXEXT_INLINE */
|
||||||
|
|
||||||
|
#if HAVE_SSE2_INLINE
|
||||||
|
|
||||||
void ff_fdct_sse2(int16_t *block)
|
void ff_fdct_sse2(int16_t *block)
|
||||||
{
|
{
|
||||||
DECLARE_ALIGNED(16, int64_t, align_tmp)[16];
|
DECLARE_ALIGNED(16, int64_t, align_tmp)[16];
|
||||||
|
|
@ -583,4 +591,4 @@ void ff_fdct_sse2(int16_t *block)
|
||||||
fdct_row_sse2(block1, block);
|
fdct_row_sse2(block1, block);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* HAVE_INLINE_ASM */
|
#endif /* HAVE_SSE2_INLINE */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue