MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / decode_parameters

Function decode_parameters

libavcodec/sipr.c:191–210  ·  view source on GitHub ↗

* Extracts decoding parameters from the input bitstream. * @param parms parameters structure * @param pgb pointer to initialized GetBitContext structure */

Source from the content-addressed store, hash-verified

189 * @param pgb pointer to initialized GetBitContext structure
190 */
191static void decode_parameters(SiprParameters* parms, GetBitContext *pgb,
192 const SiprModeParam *p)
193{
194 int i, j;
195
196 parms->ma_pred_switch = get_bits(pgb, p->ma_predictor_bits);
197
198 for (i = 0; i < 5; i++)
199 parms->vq_indexes[i] = get_bits(pgb, p->vq_indexes_bits[i]);
200
201 for (i = 0; i < p->subframe_count; i++) {
202 parms->pitch_delay[i] = get_bits(pgb, p->pitch_delay_bits[i]);
203 parms->gp_index[i] = get_bits(pgb, p->gp_index_bits);
204
205 for (j = 0; j < p->number_of_fc_indexes; j++)
206 parms->fc_indexes[i][j] = get_bits(pgb, p->fc_index_bits[j]);
207
208 parms->gc_index[i] = get_bits(pgb, p->gc_index_bits);
209 }
210}
211
212static void lsp2lpc_sipr(const double *lsp, float *Az)
213{

Callers 1

sipr_decode_frameFunction · 0.85

Calls 1

get_bitsFunction · 0.85

Tested by

no test coverage detected