#include "cwrs.h"
#include "modes.h"
Go to the source code of this file.
|
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) |
|
◆ CELT_MAX_PULSES
#define CELT_MAX_PULSES 128 |
◆ FINE_OFFSET
◆ LOG_MAX_PSEUDO
◆ MAX_FINE_BITS
◆ MAX_PSEUDO
◆ QTHETA_OFFSET
◆ QTHETA_OFFSET_TWOPHASE
#define QTHETA_OFFSET_TWOPHASE 16 |
◆ 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
-
m | mode |
offsets | Requested increase or decrease in the number of bits for each band |
total | Number of bands |
pulses | Number of pulses per band (returned) |
- Returns
- Total number of bits allocated
◆ compute_pulse_cache()