• Home
  • Raw
  • Download

Lines Matching refs:mtab

182     const TwinVQModeTab *mtab = tctx->mtab;  in decode_ppc()  local
185 int min_period = ROUNDED_DIV(40 * 2 * mtab->size, isampf); in decode_ppc()
186 int max_period = ROUNDED_DIV(40 * 2 * mtab->size * 6, isampf); in decode_ppc()
188 float pgain_step = 25000.0 / ((1 << mtab->pgain_bit) - 1); in decode_ppc()
198 (1 << mtab->ppc_period_bit) - 1); in decode_ppc()
203 width = ROUNDED_DIV((period + 800) * mtab->peak_per2wid, in decode_ppc()
204 400 * mtab->size); in decode_ppc()
206 width = period * mtab->peak_per2wid / (400 * mtab->size); in decode_ppc()
208 add_peak(period, width, shape, ppc_gain, speech, mtab->ppc_shape_len); in decode_ppc()
215 const TwinVQModeTab *mtab = tctx->mtab; in dec_bark_env() local
219 int bark_n_coef = mtab->fmode[ftype].bark_n_coef; in dec_bark_env()
220 int fw_cb_len = mtab->fmode[ftype].bark_env_size / bark_n_coef; in dec_bark_env()
225 float tmp2 = mtab->fmode[ftype].bark_cb[fw_cb_len * in[j] + i] * in dec_bark_env()
234 twinvq_memset_float(out, st * gain, mtab->fmode[ftype].bark_tab[idx]); in dec_bark_env()
235 out += mtab->fmode[ftype].bark_tab[idx]; in dec_bark_env()
256 const TwinVQModeTab *mtab = tctx->mtab; in twinvq_read_bitstream() local
275 sub = mtab->fmode[bits->ftype].sub; in twinvq_read_bitstream()
281 for (k = 0; k < mtab->fmode[bits->ftype].bark_n_coef; k++) in twinvq_read_bitstream()
283 get_bits(&gb, mtab->fmode[bits->ftype].bark_n_bit); in twinvq_read_bitstream()
302 bits->lpc_hist_idx[i] = get_bits(&gb, mtab->lsp_bit0); in twinvq_read_bitstream()
303 bits->lpc_idx1[i] = get_bits(&gb, mtab->lsp_bit1); in twinvq_read_bitstream()
305 for (j = 0; j < mtab->lsp_split; j++) in twinvq_read_bitstream()
306 bits->lpc_idx2[i][j] = get_bits(&gb, mtab->lsp_bit2); in twinvq_read_bitstream()
312 bits->p_coef[i] = get_bits(&gb, mtab->ppc_period_bit); in twinvq_read_bitstream()
313 bits->g_coef[i] = get_bits(&gb, mtab->pgain_bit); in twinvq_read_bitstream()
368 tctx->mtab = &mode_08_08; in twinvq_decode_init()
371 tctx->mtab = &mode_11_08; in twinvq_decode_init()
374 tctx->mtab = &mode_11_10; in twinvq_decode_init()
377 tctx->mtab = &mode_16_16; in twinvq_decode_init()
380 tctx->mtab = &mode_22_20; in twinvq_decode_init()
383 tctx->mtab = &mode_22_24; in twinvq_decode_init()
386 tctx->mtab = &mode_22_32; in twinvq_decode_init()
389 tctx->mtab = &mode_44_40; in twinvq_decode_init()
392 tctx->mtab = &mode_44_48; in twinvq_decode_init()
405 tctx->frame_size = avctx->bit_rate * tctx->mtab->size in twinvq_decode_init()