Mercurial > libavcodec.hg
comparison liba52/resample.c @ 4156:2d53ef5a97cb libavcodec
Use MMX only under x86_32, there are compilation problems.
| author | diego |
|---|---|
| date | Tue, 07 Nov 2006 12:28:13 +0000 |
| parents | e2aafe2aa2df |
| children |
comparison
equal
deleted
inserted
replaced
| 4155:0f28fc219799 | 4156:2d53ef5a97cb |
|---|---|
| 31 | 31 |
| 32 int (* a52_resample) (float * _f, int16_t * s16)=NULL; | 32 int (* a52_resample) (float * _f, int16_t * s16)=NULL; |
| 33 | 33 |
| 34 #include "resample_c.c" | 34 #include "resample_c.c" |
| 35 | 35 |
| 36 #ifdef ARCH_X86 | 36 #ifdef ARCH_X86_32 |
| 37 #include "resample_mmx.c" | 37 #include "resample_mmx.c" |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 void* a52_resample_init(uint32_t mm_accel,int flags,int chans){ | 40 void* a52_resample_init(uint32_t mm_accel,int flags,int chans){ |
| 41 void* tmp; | 41 void* tmp; |
| 42 | 42 |
| 43 #ifdef ARCH_X86 | 43 #ifdef ARCH_X86_32 |
| 44 if(mm_accel&MM_ACCEL_X86_MMX){ | 44 if(mm_accel&MM_ACCEL_X86_MMX){ |
| 45 tmp=a52_resample_MMX(flags,chans); | 45 tmp=a52_resample_MMX(flags,chans); |
| 46 if(tmp){ | 46 if(tmp){ |
| 47 if(a52_resample==NULL) av_log(NULL, AV_LOG_INFO, "Using MMX optimized resampler\n"); | 47 if(a52_resample==NULL) av_log(NULL, AV_LOG_INFO, "Using MMX optimized resampler\n"); |
| 48 a52_resample=tmp; | 48 a52_resample=tmp; |
