Browse Source

swr: mix_1_1_int16_sse

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
d504266cef
2 changed files with 6 additions and 0 deletions
  1. +2
    -0
      libswresample/x86/rematrix.asm
  2. +4
    -0
      libswresample/x86/swresample_x86.c

+ 2
- 0
libswresample/x86/rematrix.asm View File

@@ -167,6 +167,8 @@ MIX2_FLT u
MIX2_FLT a
MIX1_FLT u
MIX1_FLT a
MIX1_INT16 u
MIX1_INT16 a

%if HAVE_AVX
INIT_YMM avx


+ 4
- 0
libswresample/x86/swresample_x86.c View File

@@ -150,6 +150,7 @@ mix_2_1_func_type ff_mix_2_1_a_## type ## _ ## simd;
D(float, sse)
D(float, avx)
D(int16, mmx)
D(int16, sse)


void swri_rematrix_init_x86(struct SwrContext *s){
@@ -166,6 +167,9 @@ void swri_rematrix_init_x86(struct SwrContext *s){
if(mm_flags & AV_CPU_FLAG_MMX) {
s->mix_1_1_simd = ff_mix_1_1_a_int16_mmx;
}
if(mm_flags & AV_CPU_FLAG_SSE) {
s->mix_1_1_simd = ff_mix_1_1_a_int16_sse;
}
s->native_simd_matrix = av_mallocz(2 * num * sizeof(int16_t));
for(i=0; i<nb_out; i++){
int sh = 0;


Loading…
Cancel
Save