|
|
@ -527,40 +527,14 @@ static inline void emms(void) |
|
|
|
emms();\
|
|
|
|
emms();\
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define STRIDE_ALIGN 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx); |
|
|
|
void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx); |
|
|
|
|
|
|
|
|
|
|
|
#elif defined(ARCH_ARMV4L) |
|
|
|
#elif defined(ARCH_ARMV4L) |
|
|
|
|
|
|
|
|
|
|
|
/* This is to use 4 bytes read to the IDCT pointers for some 'zero'
|
|
|
|
|
|
|
|
line optimizations */ |
|
|
|
|
|
|
|
#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(4, t, v) |
|
|
|
|
|
|
|
#define STRIDE_ALIGN 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define MM_IWMMXT 0x0100 /* XScale IWMMXT */ |
|
|
|
#define MM_IWMMXT 0x0100 /* XScale IWMMXT */ |
|
|
|
|
|
|
|
|
|
|
|
extern int mm_flags; |
|
|
|
extern int mm_flags; |
|
|
|
|
|
|
|
|
|
|
|
#elif defined(HAVE_MLIB) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* SPARC/VIS IDCT needs 8-byte aligned DCT blocks */ |
|
|
|
|
|
|
|
#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
|
|
|
|
|
|
|
#define STRIDE_ALIGN 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#elif defined(HAVE_VIS) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* SPARC/VIS IDCT needs 8-byte aligned DCT blocks */ |
|
|
|
|
|
|
|
#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
|
|
|
|
|
|
|
#define STRIDE_ALIGN 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#elif defined(ARCH_ALPHA) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
|
|
|
|
|
|
|
#define STRIDE_ALIGN 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#elif defined(ARCH_POWERPC) |
|
|
|
#elif defined(ARCH_POWERPC) |
|
|
|
|
|
|
|
|
|
|
|
#define MM_ALTIVEC 0x0001 /* standard AltiVec */ |
|
|
|
#define MM_ALTIVEC 0x0001 /* standard AltiVec */ |
|
|
@ -575,21 +549,14 @@ extern int mm_flags; |
|
|
|
#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) |
|
|
|
#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) |
|
|
|
#define STRIDE_ALIGN 16 |
|
|
|
#define STRIDE_ALIGN 16 |
|
|
|
|
|
|
|
|
|
|
|
#elif defined(ARCH_SH4) |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
|
|
|
|
|
|
|
#define STRIDE_ALIGN 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#elif defined(ARCH_BFIN) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef DECLARE_ALIGNED_8 |
|
|
|
# define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
|
|
|
# define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
|
|
|
#define STRIDE_ALIGN 8 |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
|
|
|
#ifndef STRIDE_ALIGN |
|
|
|
# define STRIDE_ALIGN 8 |
|
|
|
# define STRIDE_ALIGN 8 |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
/* PSNR */ |
|
|
|
/* PSNR */ |
|
|
|