~ubuntu-branches/ubuntu/vivid/ffmpeg/vivid

« back to all changes in this revision

Viewing changes to libswresample/x86/audio_convert_init.c

  • Committer: Package Import Robot
  • Author(s): Andreas Cadhalpun
  • Date: 2014-12-06 14:07:28 UTC
  • mfrom: (0.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20141206140728-to8fu8ywimaxu7ws
Tags: 7:2.5-1
* Import new major upstream release 2.5.
* Update debian/changelog.
* Add new symbols to the symbols files.
* Disable rtmp on powerpcspe and sparc64 as librtmp-dev is currently
  uninstallable there.
* Disable opencv on powerpcspe, as it is currently uninstallable.
* Enable x265 on mips, mipsel and powerpc, as it's now available there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#define PROTO(pre, in, out, cap) void ff ## pre ## in## _to_ ##out## _a_ ##cap(uint8_t **dst, const uint8_t **src, int len);
26
26
#define PROTO2(pre, out, cap) PROTO(pre, int16, out, cap) PROTO(pre, int32, out, cap) PROTO(pre, float, out, cap)
27
27
#define PROTO3(pre, cap) PROTO2(pre, int16, cap) PROTO2(pre, int32, cap) PROTO2(pre, float, cap)
28
 
#define PROTO4(pre) PROTO3(pre, mmx) PROTO3(pre, sse) PROTO3(pre, sse2) PROTO3(pre, ssse3) PROTO3(pre, sse4) PROTO3(pre, avx)
 
28
#define PROTO4(pre) PROTO3(pre, mmx) PROTO3(pre, sse) PROTO3(pre, sse2) PROTO3(pre, ssse3) PROTO3(pre, sse4) PROTO3(pre, avx) PROTO3(pre, avx2)
29
29
PROTO4(_)
30
30
PROTO4(_pack_2ch_)
31
31
PROTO4(_pack_6ch_)
58
58
                ac->simd_f =  ff_pack_6ch_float_to_float_a_mmx;
59
59
        }
60
60
    }
61
 
 
 
61
    if(EXTERNAL_SSE(mm_flags)) {
 
62
        if(channels == 6) {
 
63
            if(   out_fmt == AV_SAMPLE_FMT_FLT  && in_fmt == AV_SAMPLE_FMT_FLTP || out_fmt == AV_SAMPLE_FMT_S32 && in_fmt == AV_SAMPLE_FMT_S32P)
 
64
                ac->simd_f =  ff_pack_6ch_float_to_float_a_sse;
 
65
        }
 
66
    }
62
67
    if(EXTERNAL_SSE2(mm_flags)) {
63
68
        if(   out_fmt == AV_SAMPLE_FMT_FLT  && in_fmt == AV_SAMPLE_FMT_S32 || out_fmt == AV_SAMPLE_FMT_FLTP && in_fmt == AV_SAMPLE_FMT_S32P)
64
69
            ac->simd_f =  ff_int32_to_float_a_sse2;
105
110
            if(   out_fmt == AV_SAMPLE_FMT_S16P  && in_fmt == AV_SAMPLE_FMT_FLT)
106
111
                ac->simd_f =  ff_unpack_2ch_float_to_int16_a_sse2;
107
112
        }
 
113
        if(channels == 6) {
 
114
            if(   out_fmt == AV_SAMPLE_FMT_FLT  && in_fmt == AV_SAMPLE_FMT_S32P)
 
115
                ac->simd_f =  ff_pack_6ch_int32_to_float_a_sse2;
 
116
            if(   out_fmt == AV_SAMPLE_FMT_S32  && in_fmt == AV_SAMPLE_FMT_FLTP)
 
117
                ac->simd_f =  ff_pack_6ch_float_to_int32_a_sse2;
 
118
        }
108
119
    }
109
120
    if(EXTERNAL_SSSE3(mm_flags)) {
110
121
        if(channels == 2) {
116
127
                ac->simd_f =  ff_unpack_2ch_int16_to_float_a_ssse3;
117
128
        }
118
129
    }
119
 
    if(EXTERNAL_SSE4(mm_flags)) {
120
 
        if(channels == 6) {
121
 
            if(   out_fmt == AV_SAMPLE_FMT_FLT  && in_fmt == AV_SAMPLE_FMT_FLTP || out_fmt == AV_SAMPLE_FMT_S32 && in_fmt == AV_SAMPLE_FMT_S32P)
122
 
                ac->simd_f =  ff_pack_6ch_float_to_float_a_sse4;
123
 
            if(   out_fmt == AV_SAMPLE_FMT_FLT  && in_fmt == AV_SAMPLE_FMT_S32P)
124
 
                ac->simd_f =  ff_pack_6ch_int32_to_float_a_sse4;
125
 
            if(   out_fmt == AV_SAMPLE_FMT_S32  && in_fmt == AV_SAMPLE_FMT_FLTP)
126
 
                ac->simd_f =  ff_pack_6ch_float_to_int32_a_sse4;
127
 
        }
128
 
    }
129
130
    if(EXTERNAL_AVX(mm_flags)) {
130
131
        if(   out_fmt == AV_SAMPLE_FMT_FLT  && in_fmt == AV_SAMPLE_FMT_S32 || out_fmt == AV_SAMPLE_FMT_FLTP && in_fmt == AV_SAMPLE_FMT_S32P)
131
132
            ac->simd_f =  ff_int32_to_float_a_avx;
138
139
                ac->simd_f =  ff_pack_6ch_float_to_int32_a_avx;
139
140
        }
140
141
    }
 
142
    if(EXTERNAL_AVX2(mm_flags)) {
 
143
        if(   out_fmt == AV_SAMPLE_FMT_S32  && in_fmt == AV_SAMPLE_FMT_FLT || out_fmt == AV_SAMPLE_FMT_S32P && in_fmt == AV_SAMPLE_FMT_FLTP)
 
144
            ac->simd_f =  ff_float_to_int32_a_avx2;
 
145
    }
141
146
}