webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros | Functions
rate.h File Reference
#include "cwrs.h"
#include "modes.h"

Go to the source code of this file.

Macros

#define MAX_PSEUDO   40
 
#define LOG_MAX_PSEUDO   6
 
#define CELT_MAX_PULSES   128
 
#define MAX_FINE_BITS   8
 
#define FINE_OFFSET   21
 
#define QTHETA_OFFSET   4
 
#define QTHETA_OFFSET_TWOPHASE   16
 

Functions

void compute_pulse_cache (CELTMode *m, int LM)
 
int compute_allocation (const CELTMode *m, int start, int end, const int *offsets, const int *cap, int alloc_trim, int *intensity, int *dual_stero, opus_int32 total, opus_int32 *balance, int *pulses, int *ebits, int *fine_priority, int C, int LM, ec_ctx *ec, int encode, int prev, int signalBandwidth)
 

Macro Definition Documentation

◆ CELT_MAX_PULSES

#define CELT_MAX_PULSES   128

◆ FINE_OFFSET

#define FINE_OFFSET   21

◆ LOG_MAX_PSEUDO

#define LOG_MAX_PSEUDO   6

◆ MAX_FINE_BITS

#define MAX_FINE_BITS   8

◆ MAX_PSEUDO

#define MAX_PSEUDO   40

◆ QTHETA_OFFSET

#define QTHETA_OFFSET   4

◆ QTHETA_OFFSET_TWOPHASE

#define QTHETA_OFFSET_TWOPHASE   16

Function Documentation

◆ compute_allocation()

int compute_allocation ( const CELTMode m,
int  start,
int  end,
const int *  offsets,
const int *  cap,
int  alloc_trim,
int *  intensity,
int *  dual_stero,
opus_int32  total,
opus_int32 balance,
int *  pulses,
int *  ebits,
int *  fine_priority,
int  C,
int  LM,
ec_ctx ec,
int  encode,
int  prev,
int  signalBandwidth 
)

Compute the pulse allocation, i.e. how many pulses will go in each band.

Parameters
mmode
offsetsRequested increase or decrease in the number of bits for each band
totalNumber of bands
pulsesNumber of pulses per band (returned)
Returns
Total number of bits allocated

◆ compute_pulse_cache()

void compute_pulse_cache ( CELTMode m,
int  LM 
)