comparison libxvidff.c @ 6343:870714b0f293 libavcodec

Use HAVE_ALTIVEC preprocessor conditionals like in the rest of FFmpeg.
author diego
date Sat, 09 Feb 2008 17:55:07 +0000
parents 1deb3e53da27
children b98dde3f56a0
comparison
equal deleted inserted replaced
6342:644cc66607b2 6343:870714b0f293
36 #define BUFFER_SIZE 1024 36 #define BUFFER_SIZE 1024
37 #define BUFFER_REMAINING(x) (BUFFER_SIZE - strlen(x)) 37 #define BUFFER_REMAINING(x) (BUFFER_SIZE - strlen(x))
38 #define BUFFER_CAT(x) (&((x)[strlen(x)])) 38 #define BUFFER_CAT(x) (&((x)[strlen(x)]))
39 39
40 /* For PPC Use */ 40 /* For PPC Use */
41 #if HAVE_ALTIVEC==1 41 #ifdef HAVE_ALTIVEC
42 extern int has_altivec(void); 42 extern int has_altivec(void);
43 #endif 43 #endif
44 44
45 /** 45 /**
46 * Structure for the private XviD context. 46 * Structure for the private XviD context.
167 xvid_gbl_init.version = XVID_VERSION; 167 xvid_gbl_init.version = XVID_VERSION;
168 xvid_gbl_init.debug = 0; 168 xvid_gbl_init.debug = 0;
169 169
170 #ifdef ARCH_POWERPC 170 #ifdef ARCH_POWERPC
171 /* XviD's PPC support is borked, use libavcodec to detect */ 171 /* XviD's PPC support is borked, use libavcodec to detect */
172 #if HAVE_ALTIVEC==1 172 #ifdef HAVE_ALTIVEC
173 if( has_altivec() ) { 173 if( has_altivec() ) {
174 xvid_gbl_init.cpu_flags = XVID_CPU_FORCE | XVID_CPU_ALTIVEC; 174 xvid_gbl_init.cpu_flags = XVID_CPU_FORCE | XVID_CPU_ALTIVEC;
175 } else 175 } else
176 #endif 176 #endif
177 xvid_gbl_init.cpu_flags = XVID_CPU_FORCE; 177 xvid_gbl_init.cpu_flags = XVID_CPU_FORCE;