FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
swresample_x86.c File Reference
#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)
 
#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)
 
av_cold void swri_rematrix_init_x86 (struct SwrContext *s)
 

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 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.

#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;\
}

Referenced by swri_audio_convert_init_x86().

#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;

Definition at line 142 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.

av_cold void swri_rematrix_init_x86 ( struct SwrContext s)

Definition at line 152 of file swresample_x86.c.

Referenced by swri_rematrix_init().