FFmpeg
Functions
sbcdsp.c File Reference
#include <stdint.h>
#include <limits.h>
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/intmath.h"
#include "libavutil/intreadwrite.h"
#include "sbc.h"
#include "sbcdsp.h"
#include "sbcdsp_data.h"

Go to the source code of this file.

Functions

static av_always_inline void sbc_analyze_simd (const int16_t *in, int32_t *out, const int16_t *consts, unsigned subbands)
 
static void sbc_analyze_4_simd (const int16_t *in, int32_t *out, const int16_t *consts)
 
static void sbc_analyze_8_simd (const int16_t *in, int32_t *out, const int16_t *consts)
 
static void sbc_analyze_4b_4s_simd (SBCDSPContext *s, int16_t *x, int32_t *out, int out_stride)
 
static void sbc_analyze_4b_8s_simd (SBCDSPContext *s, int16_t *x, int32_t *out, int out_stride)
 
static void sbc_analyze_1b_8s_simd_even (SBCDSPContext *s, int16_t *x, int32_t *out, int out_stride)
 
static void sbc_analyze_1b_8s_simd_odd (SBCDSPContext *s, int16_t *x, int32_t *out, int out_stride)
 
static int sbc_enc_process_input_4s (int position, const uint8_t *pcm, int16_t X[2][SBC_X_BUFFER_SIZE], int nsamples, int nchannels)
 
static int sbc_enc_process_input_8s (int position, const uint8_t *pcm, int16_t X[2][SBC_X_BUFFER_SIZE], int nsamples, int nchannels)
 
static void sbc_calc_scalefactors (int32_t sb_sample_f[16][2][8], uint32_t scale_factor[2][8], int blocks, int channels, int subbands)
 
static int sbc_calc_scalefactors_j (int32_t sb_sample_f[16][2][8], uint32_t scale_factor[2][8], int blocks, int subbands)
 
av_cold void ff_sbcdsp_init (SBCDSPContext *s)
 

Detailed Description

SBC basic "building bricks"

Definition in file sbcdsp.c.

Function Documentation

◆ sbc_analyze_simd()

static av_always_inline void sbc_analyze_simd ( const int16_t *  in,
int32_t out,
const int16_t *  consts,
unsigned  subbands 
)
static

Definition at line 62 of file sbcdsp.c.

Referenced by sbc_analyze_4_simd(), and sbc_analyze_8_simd().

◆ sbc_analyze_4_simd()

static void sbc_analyze_4_simd ( const int16_t *  in,
int32_t out,
const int16_t *  consts 
)
static

Definition at line 94 of file sbcdsp.c.

Referenced by ff_sbcdsp_init().

◆ sbc_analyze_8_simd()

static void sbc_analyze_8_simd ( const int16_t *  in,
int32_t out,
const int16_t *  consts 
)
static

Definition at line 100 of file sbcdsp.c.

Referenced by ff_sbcdsp_init().

◆ sbc_analyze_4b_4s_simd()

static void sbc_analyze_4b_4s_simd ( SBCDSPContext *  s,
int16_t *  x,
int32_t out,
int  out_stride 
)
inlinestatic

Definition at line 106 of file sbcdsp.c.

Referenced by ff_sbcdsp_init().

◆ sbc_analyze_4b_8s_simd()

static void sbc_analyze_4b_8s_simd ( SBCDSPContext *  s,
int16_t *  x,
int32_t out,
int  out_stride 
)
inlinestatic

Definition at line 119 of file sbcdsp.c.

Referenced by ff_sbcdsp_init().

◆ sbc_analyze_1b_8s_simd_even()

static void sbc_analyze_1b_8s_simd_even ( SBCDSPContext *  s,
int16_t *  x,
int32_t out,
int  out_stride 
)
inlinestatic

Definition at line 144 of file sbcdsp.c.

Referenced by sbc_analyze_1b_8s_simd_odd().

◆ sbc_analyze_1b_8s_simd_odd()

static void sbc_analyze_1b_8s_simd_odd ( SBCDSPContext *  s,
int16_t *  x,
int32_t out,
int  out_stride 
)
inlinestatic

Definition at line 136 of file sbcdsp.c.

Referenced by ff_sbcdsp_init(), and sbc_analyze_1b_8s_simd_even().

◆ sbc_enc_process_input_4s()

static int sbc_enc_process_input_4s ( int  position,
const uint8_t pcm,
int16_t  X[2][SBC_X_BUFFER_SIZE],
int  nsamples,
int  nchannels 
)
static

Definition at line 164 of file sbcdsp.c.

Referenced by ff_sbcdsp_init().

◆ sbc_enc_process_input_8s()

static int sbc_enc_process_input_8s ( int  position,
const uint8_t pcm,
int16_t  X[2][SBC_X_BUFFER_SIZE],
int  nsamples,
int  nchannels 
)
static

Definition at line 197 of file sbcdsp.c.

Referenced by ff_sbcdsp_init().

◆ sbc_calc_scalefactors()

static void sbc_calc_scalefactors ( int32_t  sb_sample_f[16][2][8],
uint32_t  scale_factor[2][8],
int  blocks,
int  channels,
int  subbands 
)
static

Definition at line 270 of file sbcdsp.c.

Referenced by ff_sbcdsp_init().

◆ sbc_calc_scalefactors_j()

static int sbc_calc_scalefactors_j ( int32_t  sb_sample_f[16][2][8],
uint32_t  scale_factor[2][8],
int  blocks,
int  subbands 
)
static

Definition at line 288 of file sbcdsp.c.

Referenced by ff_sbcdsp_init().

◆ ff_sbcdsp_init()

av_cold void ff_sbcdsp_init ( SBCDSPContext *  s)

Definition at line 364 of file sbcdsp.c.

Referenced by sbc_encode_init().