diff options
Diffstat (limited to 'src/libffmpeg/libavcodec/dsputil.h')
-rw-r--r-- | src/libffmpeg/libavcodec/dsputil.h | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/src/libffmpeg/libavcodec/dsputil.h b/src/libffmpeg/libavcodec/dsputil.h index 80a934ccd..1189747f3 100644 --- a/src/libffmpeg/libavcodec/dsputil.h +++ b/src/libffmpeg/libavcodec/dsputil.h @@ -103,20 +103,36 @@ void dsputil_init_mmx(void); #elif defined(ARCH_ARMV4L) -#define emms_c() - /* This is to use 4 bytes read to the IDCT pointers for some 'zero' line ptimizations */ #define __align8 __attribute__ ((aligned (4))) void dsputil_init_armv4l(void); -#else +#endif + + + +#if defined(HAVE_MLIB) -#define emms_c() +/* SPARC/VIS IDCT needs 8-byte aligned DCT blocks */ +#define __align8 __attribute__ ((aligned (8))) + +void dsputil_init_mlib(void); + +#endif /* HAVE_MLIB */ -#define __align8 +/* + * provide empty defaults, if the target specific accelerated dsputils did + * not define these: + */ +#ifndef __align8 +#define __align8 +#endif + +#ifndef emms_c +#define emms_c() #endif #endif |