32 #ifndef AVCODEC_SBCDSP_H 33 #define AVCODEC_SBCDSP_H 38 #define SCALE_OUT_BITS 15 39 #define SBC_X_BUFFER_SIZE 328 47 DECLARE_ALIGNED(SBC_ALIGN, int16_t, X)[2][SBC_X_BUFFER_SIZE];
48 void (*sbc_analyze_4)(
const int16_t *in, int32_t *out,
const int16_t *consts);
49 void (*sbc_analyze_8)(
const int16_t *in, int32_t *out,
const int16_t *consts);
53 int16_t *x, int32_t *out,
int out_stride);
57 int16_t *x, int32_t *out,
int out_stride);
60 int (*sbc_enc_process_input_4s)(
int position,
const uint8_t *pcm,
61 int16_t X[2][SBC_X_BUFFER_SIZE],
62 int nsamples,
int nchannels);
63 int (*sbc_enc_process_input_8s)(
int position,
const uint8_t *pcm,
64 int16_t X[2][SBC_X_BUFFER_SIZE],
65 int nsamples,
int nchannels);
67 void (*sbc_calc_scalefactors)(int32_t sb_sample_f[16][2][8],
68 uint32_t scale_factor[2][8],
69 int blocks,
int channels,
int subbands);
71 int (*sbc_calc_scalefactors_j)(int32_t sb_sample_f[16][2][8],
72 uint32_t scale_factor[2][8],
73 int blocks,
int subbands);
SBC common definitions for the encoder and decoder.