FFmpeg
Macros | Functions
ac3dsp_init.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/x86/asm.h"
#include "libavutil/x86/cpu.h"
#include "libavcodec/ac3.h"
#include "libavcodec/ac3dsp.h"

Go to the source code of this file.

Macros

#define DOWNMIX_FUNC_OPT(ch, opt)
 
#define DOWNMIX_FUNCS(opt)
 
#define SET_DOWNMIX(ch, suf, SUF)
 
#define SET_DOWNMIX_ALL(suf, SUF)
 

Functions

void ff_ac3_exponent_min_mmx (uint8_t *exp, int num_reuse_blocks, int nb_coefs)
 
void ff_ac3_exponent_min_mmxext (uint8_t *exp, int num_reuse_blocks, int nb_coefs)
 
void ff_ac3_exponent_min_sse2 (uint8_t *exp, int num_reuse_blocks, int nb_coefs)
 
void ff_float_to_fixed24_3dnow (int32_t *dst, const float *src, unsigned int len)
 
void ff_float_to_fixed24_sse (int32_t *dst, const float *src, unsigned int len)
 
void ff_float_to_fixed24_sse2 (int32_t *dst, const float *src, unsigned int len)
 
int ff_ac3_compute_mantissa_size_sse2 (uint16_t mant_cnt[6][16])
 
void ff_ac3_extract_exponents_sse2 (uint8_t *exp, int32_t *coef, int nb_coefs)
 
void ff_ac3_extract_exponents_ssse3 (uint8_t *exp, int32_t *coef, int nb_coefs)
 
av_cold void ff_ac3dsp_init_x86 (AC3DSPContext *c, int bit_exact)
 
void ff_ac3dsp_set_downmix_x86 (AC3DSPContext *c)
 

Macro Definition Documentation

◆ DOWNMIX_FUNC_OPT

#define DOWNMIX_FUNC_OPT (   ch,
  opt 
)
Value:
void ff_ac3_downmix_ ## ch ## _to_1_ ## opt(float **samples, \
float **matrix, int len); \
void ff_ac3_downmix_ ## ch ## _to_2_ ## opt(float **samples, \
float **matrix, int len);

Definition at line 72 of file ac3dsp_init.c.

◆ DOWNMIX_FUNCS

#define DOWNMIX_FUNCS (   opt)
Value:
DOWNMIX_FUNC_OPT(3, opt) \
DOWNMIX_FUNC_OPT(4, opt) \
DOWNMIX_FUNC_OPT(5, opt) \
DOWNMIX_FUNC_OPT(6, opt)

Definition at line 78 of file ac3dsp_init.c.

◆ SET_DOWNMIX

#define SET_DOWNMIX (   ch,
  suf,
  SUF 
)
Value:
if (ch == c->in_channels) { \
if (EXTERNAL_ ## SUF (cpu_flags)) { \
if (c->out_channels == 1) \
c->downmix = ff_ac3_downmix_ ## ch ## _to_1_ ## suf; \
else \
c->downmix = ff_ac3_downmix_ ## ch ## _to_2_ ## suf; \
} \
}

◆ SET_DOWNMIX_ALL

#define SET_DOWNMIX_ALL (   suf,
  SUF 
)
Value:
SET_DOWNMIX(3, suf, SUF) \
SET_DOWNMIX(4, suf, SUF) \
SET_DOWNMIX(5, suf, SUF) \
SET_DOWNMIX(6, suf, SUF)

Function Documentation

◆ ff_ac3_exponent_min_mmx()

void ff_ac3_exponent_min_mmx ( uint8_t *  exp,
int  num_reuse_blocks,
int  nb_coefs 
)

Referenced by ff_ac3dsp_init_x86().

◆ ff_ac3_exponent_min_mmxext()

void ff_ac3_exponent_min_mmxext ( uint8_t *  exp,
int  num_reuse_blocks,
int  nb_coefs 
)

Referenced by ff_ac3dsp_init_x86().

◆ ff_ac3_exponent_min_sse2()

void ff_ac3_exponent_min_sse2 ( uint8_t *  exp,
int  num_reuse_blocks,
int  nb_coefs 
)

Referenced by ff_ac3dsp_init_x86().

◆ ff_float_to_fixed24_3dnow()

void ff_float_to_fixed24_3dnow ( int32_t dst,
const float *  src,
unsigned int  len 
)

Referenced by ff_ac3dsp_init_x86().

◆ ff_float_to_fixed24_sse()

void ff_float_to_fixed24_sse ( int32_t dst,
const float *  src,
unsigned int  len 
)

Referenced by ff_ac3dsp_init_x86().

◆ ff_float_to_fixed24_sse2()

void ff_float_to_fixed24_sse2 ( int32_t dst,
const float *  src,
unsigned int  len 
)

Referenced by ff_ac3dsp_init_x86().

◆ ff_ac3_compute_mantissa_size_sse2()

int ff_ac3_compute_mantissa_size_sse2 ( uint16_t  mant_cnt[6][16])

Referenced by ff_ac3dsp_init_x86().

◆ ff_ac3_extract_exponents_sse2()

void ff_ac3_extract_exponents_sse2 ( uint8_t *  exp,
int32_t coef,
int  nb_coefs 
)

Referenced by ff_ac3dsp_init_x86().

◆ ff_ac3_extract_exponents_ssse3()

void ff_ac3_extract_exponents_ssse3 ( uint8_t *  exp,
int32_t coef,
int  nb_coefs 
)

Referenced by ff_ac3dsp_init_x86().

◆ ff_ac3dsp_init_x86()

av_cold void ff_ac3dsp_init_x86 ( AC3DSPContext c,
int  bit_exact 
)

Definition at line 41 of file ac3dsp_init.c.

Referenced by ff_ac3dsp_init().

◆ ff_ac3dsp_set_downmix_x86()

void ff_ac3dsp_set_downmix_x86 ( AC3DSPContext c)

Definition at line 88 of file ac3dsp_init.c.

Referenced by ff_ac3dsp_downmix().

cpu_flags
static atomic_int cpu_flags
Definition: cpu.c:50
SET_DOWNMIX
#define SET_DOWNMIX(ch, suf, SUF)
c
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
Definition: undefined.txt:32
len
int len
Definition: vorbis_enc_data.h:426
DOWNMIX_FUNC_OPT
#define DOWNMIX_FUNC_OPT(ch, opt)
Definition: ac3dsp_init.c:72
samples
Filter the word “frame” indicates either a video frame or a group of audio samples
Definition: filter_design.txt:8