FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
audio_convert_init.c File Reference
#include "libavutil/x86/cpu.h"
#include "libswresample/swresample_internal.h"
#include "libswresample/audioconvert.h"

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) PROTO3(pre, avx2)
 
#define MULTI_CAPS_FUNC(flag, cap)
 

Functions

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

Macro Definition Documentation

#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 25 of file audio_convert_init.c.

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

Definition at line 26 of file audio_convert_init.c.

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

Definition at line 27 of file audio_convert_init.c.

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

Definition at line 28 of file audio_convert_init.c.

#define MULTI_CAPS_FUNC (   flag,
  cap 
)
Value:
if (EXTERNAL_##flag(mm_flags)) {\
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;\
}
if()
Definition: avfilter.c:975
signed 32 bits
Definition: samplefmt.h:63
signed 32 bits, planar
Definition: samplefmt.h:69
signed 16 bits
Definition: samplefmt.h:62
signed 16 bits, planar
Definition: samplefmt.h:68

Referenced by swri_audio_convert_init_x86().

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 36 of file audio_convert_init.c.