22 #ifndef AVCODEC_RA144_H
23 #define AVCODEC_RA144_H
32 #define BUFFERSIZE 146
33 #define FIXED_CB_SIZE 128
74 unsigned int ff_rescale_rms(
unsigned int rms,
unsigned int energy);
77 int cba_idx,
int cb1_idx,
int cb2_idx,
unsigned int lpc_tables[2][10]
unsigned int ff_rms(const int *data)
ptrdiff_t const GLvoid * data
const uint16_t ff_cb1_base[128]
int16_t adapt_cb[146+2]
Adaptive codebook, its size is two units bigger to avoid a buffer overflow.
void ff_subblock_synthesis(RA144Context *ractx, const int16_t *lpc_coefs, int cba_idx, int cb1_idx, int cb2_idx, int gval, int gain)
int ff_irms(AudioDSPContext *adsp, const int16_t *data)
inverse root mean square
#define NBLOCKS
number of subblocks within a block
const int16_t ff_energy_tab[32]
unsigned int lpc_refl_rms[2]
#define DECLARE_ALIGNED(n, t, v)
Declare a variable that is aligned in memory.
int ff_eval_refl(int *refl, const int16_t *coefs, AVCodecContext *avctx)
Evaluate the reflection coefficients from the filter coefficients.
void ff_int_to_int16(int16_t *out, const int *inp)
int ff_interp(RA144Context *ractx, int16_t *out, int a, int copyold, int energy)
unsigned int * lpc_coef[2]
LPC coefficients: lpc_coef[0] is the coefficients of the current frame and lpc_coef[1] of the previou...
const int8_t ff_cb2_vects[128][40]
static const uint8_t offset[127][2]
unsigned int ff_rescale_rms(unsigned int rms, unsigned int energy)
#define BLOCKSIZE
subblock size in 16-bit words
const int8_t ff_cb1_vects[128][40]
const int16_t ff_gain_val_tab[256][3]
main external API structure.
void ff_eval_coefs(int *coefs, const int *refl)
Evaluate the LPC filter coefficients from the reflection coefficients.
void ff_copy_and_dup(int16_t *target, const int16_t *source, int offset)
Copy the last offset values of *source to *target.
const uint16_t ff_cb2_base[128]
int16_t buffer_a[FFALIGN(BLOCKSIZE, 16)]
unsigned int old_energy
previous frame energy
int16_t curr_sblock[50]
The current subblock padded by the last 10 values of the previous one.
int ff_t_sqrt(unsigned int x)
Evaluate sqrt(x << 24).
int16_t curr_block[NBLOCKS *BLOCKSIZE]
const uint8_t ff_gain_exp_tab[256]
const int16_t *const ff_lpc_refl_cb[10]