webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros | Functions
gain_quant.c File Reference
#include "main.h"

Macros

#define OFFSET   ( ( MIN_QGAIN_DB * 128 ) / 6 + 16 * 128 )
 
#define SCALE_Q16   ( ( 65536 * ( N_LEVELS_QGAIN - 1 ) ) / ( ( ( MAX_QGAIN_DB - MIN_QGAIN_DB ) * 128 ) / 6 ) )
 
#define INV_SCALE_Q16   ( ( 65536 * ( ( ( MAX_QGAIN_DB - MIN_QGAIN_DB ) * 128 ) / 6 ) ) / ( N_LEVELS_QGAIN - 1 ) )
 

Functions

void silk_gains_quant (opus_int8 ind[MAX_NB_SUBFR], opus_int32 gain_Q16[MAX_NB_SUBFR], opus_int8 *prev_ind, const opus_int conditional, const opus_int nb_subfr)
 
void silk_gains_dequant (opus_int32 gain_Q16[MAX_NB_SUBFR], const opus_int8 ind[MAX_NB_SUBFR], opus_int8 *prev_ind, const opus_int conditional, const opus_int nb_subfr)
 
opus_int32 silk_gains_ID (const opus_int8 ind[MAX_NB_SUBFR], const opus_int nb_subfr)
 

Macro Definition Documentation

◆ INV_SCALE_Q16

#define INV_SCALE_Q16   ( ( 65536 * ( ( ( MAX_QGAIN_DB - MIN_QGAIN_DB ) * 128 ) / 6 ) ) / ( N_LEVELS_QGAIN - 1 ) )

◆ OFFSET

#define OFFSET   ( ( MIN_QGAIN_DB * 128 ) / 6 + 16 * 128 )

◆ SCALE_Q16

#define SCALE_Q16   ( ( 65536 * ( N_LEVELS_QGAIN - 1 ) ) / ( ( ( MAX_QGAIN_DB - MIN_QGAIN_DB ) * 128 ) / 6 ) )

Function Documentation

◆ silk_gains_dequant()

void silk_gains_dequant ( opus_int32  gain_Q16[MAX_NB_SUBFR],
const opus_int8  ind[MAX_NB_SUBFR],
opus_int8 prev_ind,
const opus_int  conditional,
const opus_int  nb_subfr 
)

◆ silk_gains_ID()

opus_int32 silk_gains_ID ( const opus_int8  ind[MAX_NB_SUBFR],
const opus_int  nb_subfr 
)

◆ silk_gains_quant()

void silk_gains_quant ( opus_int8  ind[MAX_NB_SUBFR],
opus_int32  gain_Q16[MAX_NB_SUBFR],
opus_int8 prev_ind,
const opus_int  conditional,
const opus_int  nb_subfr 
)