• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:ftype

116                                          enum TwinVQFrameType ftype,
122 const float *cos_tab = tctx->cos_tabs[ftype];
152 static void eval_lpcenv_2parts(TwinVQContext *tctx, enum TwinVQFrameType ftype,
156 eval_lpcenv_or_interp(tctx, ftype, lpc, buf, size / 2, step, 0);
157 eval_lpcenv_or_interp(tctx, ftype, lpc + size / 2, buf, size / 2,
173 enum TwinVQFrameType ftype,
179 for (i = 0; i < tctx->n_div[ftype]; i++) {
184 int length = tctx->length[ftype][i >= tctx->length_change[ftype]];
185 int bitstream_second_part = (i >= tctx->bits_main_spec_change[ftype]);
187 int bits = tctx->bits_main_spec[0][ftype][bitstream_second_part];
195 bits = tctx->bits_main_spec[1][ftype][bitstream_second_part];
207 out[tctx->permut[ftype][pos + j]] = sign0 * tab0[j] +
215 enum TwinVQFrameType ftype, float *out)
220 int sub = mtab->fmode[ftype].sub;
224 if (ftype == TWINVQ_FT_LONG) {
304 enum TwinVQFrameType ftype, float *lpc)
307 int size = tctx->mtab->size / tctx->mtab->fmode[ftype].sub;
312 switch (ftype) {
314 eval_lpcenv_2parts(tctx, ftype, lsp, lpc, size, 8);
317 eval_lpcenv_2parts(tctx, ftype, lsp, lpc, size, 2);
327 static void imdct_and_window(TwinVQContext *tctx, enum TwinVQFrameType ftype,
330 FFTContext *mdct = &tctx->mdct_ctx[ftype];
332 int bsize = mtab->size / mtab->fmode[ftype].sub;
349 for (j = 0; j < mtab->fmode[ftype].sub; j++) {
350 int sub_wtype = ftype == TWINVQ_FT_MEDIUM ? 8 : wtype;
354 else if (j == mtab->fmode[ftype].sub - 1 && wtype == 7)
370 out2 += ftype == TWINVQ_FT_MEDIUM ? (bsize - wsize) / 2 : bsize - wsize;
378 static void imdct_output(TwinVQContext *tctx, enum TwinVQFrameType ftype,
387 imdct_and_window(tctx, ftype, wtype,
413 enum TwinVQFrameType ftype)
418 int sub = mtab->fmode[ftype].sub;
425 dequant(tctx, bits->main_coeffs, out, ftype,
426 mtab->fmode[ftype].cb0, mtab->fmode[ftype].cb1,
427 mtab->fmode[ftype].cb_len_read);
429 dec_gain(tctx, ftype, gain);
431 if (ftype == TWINVQ_FT_LONG) {
447 tctx->tmp_buf, gain[sub * i + j], ftype);
454 if (ftype == TWINVQ_FT_LONG)
461 dec_lpc_spectrum_inv(tctx, lsp, ftype, tctx->tmp_buf);
463 for (j = 0; j < mtab->fmode[ftype].sub; j++) {
507 tctx->bits[tctx->cur_frame].ftype);
509 imdct_output(tctx, tctx->bits[tctx->cur_frame].ftype,
593 enum TwinVQFrameType ftype)
601 (ftype == TWINVQ_FT_LONG && num_vect % num_blocks) ||
602 (ftype != TWINVQ_FT_LONG && num_vect & 1) ||
605 } else if (ftype == TWINVQ_FT_LONG) {
651 enum TwinVQFrameType ftype)
657 if (ftype == TWINVQ_FT_PPC) {
661 size = tctx->avctx->channels * mtab->fmode[ftype].sub;
662 block_size = mtab->size / mtab->fmode[ftype].sub;
665 permutate_in_line(tmp_perm, tctx->n_div[ftype], size,
666 block_size, tctx->length[ftype],
667 tctx->length_change[ftype], ftype);
669 transpose_perm(tctx->permut[ftype], tmp_perm, tctx->n_div[ftype],
670 tctx->length[ftype], tctx->length_change[ftype]);
672 linear_perm(tctx->permut[ftype], tctx->permut[ftype], size,