Lines Matching refs:frame

46     I_F_Q = -1,    /**< insufficient frame quality */
57 QCELPFrame frame; /**< unpacked data frame */
128 lspf[i] = (q->frame.lspv[i] ? QCELP_LSP_SPREAD_FACTOR
166 lspf[2 * i + 0] = tmp_lspf += qcelp_lspvq[i][q->frame.lspv[i]][0] * 0.0001;
167 lspf[2 * i + 1] = tmp_lspf += qcelp_lspvq[i][q->frame.lspv[i]][1] * 0.0001;
208 g1[i] = 4 * q->frame.cbgain[i];
215 if (q->frame.cbsign[i]) {
217 q->frame.cindex[i] = (q->frame.cindex[i] - 89) & 127;
237 g1[0] = 2 * q->frame.cbgain[0] +
321 cindex = -q->frame.cindex[i];
330 cindex = -q->frame.cindex[i];
337 cbseed = (0x0003 & q->frame.lspv[4]) << 14 |
338 (0x003F & q->frame.lspv[3]) << 8 |
339 (0x0060 & q->frame.lspv[2]) << 1 |
340 (0x0007 & q->frame.lspv[1]) << 3 |
341 (0x0038 & q->frame.lspv[0]) >> 3;
477 // Compute gain & lag for the whole frame.
479 q->pitch_gain[i] = q->frame.plag[i] ? (q->frame.pgain[i] + 1) * 0.25 : 0.0;
481 q->pitch_lag[i] = q->frame.plag[i] + 16;
498 memset(q->frame.pfrac, 0, sizeof(q->frame.pfrac));
504 q->pitch_lag, q->frame.pfrac);
513 q->frame.pfrac);
561 * @param curr_lspf LSP frequencies vector of the current frame
563 * @param subframe_num frame number in decoded stream
603 * Determine the bitrate from the frame size and/or the first byte of the frame.
643 avpriv_request_sample(avctx, "Blank frame handling");
687 static int qcelp_decode_frame(AVCodecContext *avctx, AVFrame *frame,
700 frame->nb_samples = 160;
701 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
703 outbuffer = (float *)frame->data[0];
720 uint8_t *unpacked_data = (uint8_t *)&q->frame;
725 memset(&q->frame, 0, sizeof(QCELPFrame));
731 if (q->frame.reserved) {
732 warn_insufficient_frame_quality(avctx, "Wrong data in reserved frame area.");
736 codebook_sanity_check_for_rate_quarter(q->frame.cbgain)) {
743 if (q->frame.pfrac[i] && q->frame.plag[i] >= 124) {
755 warn_insufficient_frame_quality(avctx, "Badly received packets in frame.");