swresample_x86.c File Reference
Include dependency graph for swresample_x86.c:

Go to the source code of this file.

Macros

#define PROTO(pre, in, out, cap)   void ff ## pre ## _ ##in## _to_ ##out## _a_ ##cap(uint8_t **dst, const uint8_t **src, int len);
 
#define PROTO2(pre, out, cap)   PROTO(pre, int16, out, cap) PROTO(pre, int32, out, cap) PROTO(pre, float, out, cap)
 
#define PROTO3(pre, cap)   PROTO2(pre, int16, cap) PROTO2(pre, int32, cap) PROTO2(pre, float, cap)
 
#define PROTO4(pre)   PROTO3(pre, mmx) PROTO3(pre, sse) PROTO3(pre, sse2) PROTO3(pre, ssse3) PROTO3(pre, sse4) PROTO3(pre, avx)
 
#define MULTI_CAPS_FUNC(flag, cap)
 
#define D(type, simd)
 

Functions

av_cold void swri_audio_convert_init_x86 (struct AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels)
 
 D (D(float, sse)
 

Macro Definition Documentation

#define D (   type,
  simd 
)
Value:
mix_1_1_func_type ff_mix_1_1_a_## type ## _ ## simd;\
mix_2_1_func_type ff_mix_2_1_a_## type ## _ ## simd;
void( mix_2_1_func_type)(void *out, const void *in1, const void *in2, void *coeffp, integer index1, integer index2, integer len)
#define _(x)
#define type
void( mix_1_1_func_type)(void *out, const void *in, void *coeffp, integer index, integer len)

Definition at line 142 of file swresample_x86.c.

#define MULTI_CAPS_FUNC (   flag,
  cap 
)
Value:
if (mm_flags & flag) {\
if( out_fmt == AV_SAMPLE_FMT_S32 && in_fmt == AV_SAMPLE_FMT_S16 || out_fmt == AV_SAMPLE_FMT_S32P && in_fmt == AV_SAMPLE_FMT_S16P)\
ac->simd_f = ff_int16_to_int32_a_ ## cap;\
if( out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_S32 || out_fmt == AV_SAMPLE_FMT_S16P && in_fmt == AV_SAMPLE_FMT_S32P)\
ac->simd_f = ff_int32_to_int16_a_ ## cap;\
}
signed 16 bits
Definition: samplefmt.h:52
initialize output if(nPeaks >3)%at least 3 peaks in spectrum for trying to find f0 nf0peaks
end end ac
signed 32 bits, planar
Definition: samplefmt.h:59
signed 32 bits
Definition: samplefmt.h:53
signed 16 bits, planar
Definition: samplefmt.h:58

Referenced by swri_audio_convert_init_x86().

#define PROTO (   pre,
  in,
  out,
  cap 
)    void ff ## pre ## _ ##in## _to_ ##out## _a_ ##cap(uint8_t **dst, const uint8_t **src, int len);

Definition at line 24 of file swresample_x86.c.

#define PROTO2 (   pre,
  out,
  cap 
)    PROTO(pre, int16, out, cap) PROTO(pre, int32, out, cap) PROTO(pre, float, out, cap)

Definition at line 25 of file swresample_x86.c.

#define PROTO3 (   pre,
  cap 
)    PROTO2(pre, int16, cap) PROTO2(pre, int32, cap) PROTO2(pre, float, cap)

Definition at line 26 of file swresample_x86.c.

#define PROTO4 (   pre)    PROTO3(pre, mmx) PROTO3(pre, sse) PROTO3(pre, sse2) PROTO3(pre, ssse3) PROTO3(pre, sse4) PROTO3(pre, avx)

Definition at line 27 of file swresample_x86.c.

Function Documentation

av_cold void swri_audio_convert_init_x86 ( struct AudioConvert ac,
enum AVSampleFormat  out_fmt,
enum AVSampleFormat  in_fmt,
int  channels 
)

Definition at line 33 of file swresample_x86.c.