FFmpeg
Macros | Functions
ac3dsp_init.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/x86/asm.h"
#include "libavutil/x86/cpu.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_sse2 (uint8_t *exp, int num_reuse_blocks, int nb_coefs)
 
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)
 
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 53 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 59 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_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_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)

Definition at line 36 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 69 of file ac3dsp_init.c.

Referenced by ff_ac3dsp_downmix().

DOWNMIX_FUNC_OPT
#define DOWNMIX_FUNC_OPT(ch, opt)
Definition: ac3dsp_init.c:53
matrix
Definition: vc1dsp.c:42
cpu_flags
static atomic_int cpu_flags
Definition: cpu.c:52
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
SET_DOWNMIX
#define SET_DOWNMIX(ch, suf, SUF)
len
int len
Definition: vorbis_enc_data.h:426
samples
Filter the word “frame” indicates either a video frame or a group of audio samples
Definition: filter_design.txt:8