* Extracts decoding parameters from the input bitstream. * @param parms parameters structure * @param pgb pointer to initialized GetBitContext structure */
| 189 | * @param pgb pointer to initialized GetBitContext structure |
| 190 | */ |
| 191 | static 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 | |
| 212 | static void lsp2lpc_sipr(const double *lsp, float *Az) |
| 213 | { |
no test coverage detected