FFmpeg
Functions
fixed_dsp.c File Reference
#include "common.h"
#include "fixed_dsp.h"
#include "mem.h"

Go to the source code of this file.

Functions

static void vector_fmul_add_c (int *dst, const int *src0, const int *src1, const int *src2, int len)
 
static void vector_fmul_reverse_c (int *dst, const int *src0, const int *src1, int len)
 
static void vector_fmul_window_scaled_c (int16_t *dst, const int32_t *src0, const int32_t *src1, const int32_t *win, int len, uint8_t bits)
 
static void vector_fmul_window_c (int32_t *dst, const int32_t *src0, const int32_t *src1, const int32_t *win, int len)
 
static void vector_fmul_c (int *dst, const int *src0, const int *src1, int len)
 
static int scalarproduct_fixed_c (const int *v1, const int *v2, int len)
 
static void butterflies_fixed_c (int *restrict v1s, int *restrict v2, int len)
 
AVFixedDSPContextavpriv_alloc_fixed_dsp (int bit_exact)
 Allocate and initialize a fixed DSP context. More...
 

Function Documentation

◆ vector_fmul_add_c()

static void vector_fmul_add_c ( int dst,
const int src0,
const int src1,
const int src2,
int  len 
)
static

Definition at line 52 of file fixed_dsp.c.

Referenced by avpriv_alloc_fixed_dsp().

◆ vector_fmul_reverse_c()

static void vector_fmul_reverse_c ( int dst,
const int src0,
const int src1,
int  len 
)
static

Definition at line 62 of file fixed_dsp.c.

Referenced by avpriv_alloc_fixed_dsp().

◆ vector_fmul_window_scaled_c()

static void vector_fmul_window_scaled_c ( int16_t *  dst,
const int32_t src0,
const int32_t src1,
const int32_t win,
int  len,
uint8_t  bits 
)
static

Definition at line 74 of file fixed_dsp.c.

Referenced by avpriv_alloc_fixed_dsp().

◆ vector_fmul_window_c()

static void vector_fmul_window_c ( int32_t dst,
const int32_t src0,
const int32_t src1,
const int32_t win,
int  len 
)
static

Definition at line 95 of file fixed_dsp.c.

Referenced by avpriv_alloc_fixed_dsp().

◆ vector_fmul_c()

static void vector_fmul_c ( int dst,
const int src0,
const int src1,
int  len 
)
static

Definition at line 115 of file fixed_dsp.c.

Referenced by avpriv_alloc_fixed_dsp().

◆ scalarproduct_fixed_c()

static int scalarproduct_fixed_c ( const int v1,
const int v2,
int  len 
)
static

p is initialized with 0x40000000 so that the proper rounding will occur at the end

Definition at line 126 of file fixed_dsp.c.

Referenced by avpriv_alloc_fixed_dsp().

◆ butterflies_fixed_c()

static void butterflies_fixed_c ( int *restrict  v1s,
int *restrict  v2,
int  len 
)
static

Definition at line 139 of file fixed_dsp.c.

Referenced by avpriv_alloc_fixed_dsp().

◆ avpriv_alloc_fixed_dsp()

AVFixedDSPContext* avpriv_alloc_fixed_dsp ( int  strict)

Allocate and initialize a fixed DSP context.

note: should be freed with a av_free call when no longer needed.

Parameters
strictsetting to non-zero avoids using functions which may not be IEEE-754 compliant

Definition at line 151 of file fixed_dsp.c.

Referenced by ac3_decode_init(), ac3_fixed_mdct_init(), checkasm_check_fixed_dsp(), ff_aac_decode_init_fixed(), and ff_dca_core_init().