Lines Matching refs:frame
152 int have_subframe_gain; /**< Number of bits to use as sub-frame innovation
181 int first; /**< Is first frame */
184 int count_lost; /**< Was the last frame lost? */
189 float last_ol_gain; /**< Open-loop gain for previous frame */
193 int last_pitch; /**< Pitch of last correctly decoded frame */
194 float last_pitch_gain; /**< Pitch gain of last correctly decoded frame */
211 float *exc; /**< Start of excitation frame */
214 float old_qlsp[NB_ORDER]; /**< Quantized LSPs for previous frame */
935 /* Shift all buffers by one frame */
958 /* Damp memory if a frame was lost and the LSP changed too much */
969 /* Handle first frame and lost-packet case */
993 offset = NB_SUBFRAME_SIZE * sub; /* Offset relative to start of frame */
1047 /* Decode sub-frame gain correction */
1129 const int offset = NB_SUBFRAME_SIZE * sub; /* Offset relative to start of frame */
1148 /* Store the LSPs for interpolation in the next frame */
1246 if (wideband) { /* Regular wideband frame, read the submode */
1249 } else { /* Was a narrowband frame, set "null submode" */
1536 static int speex_decode_frame(AVCodecContext *avctx, AVFrame *frame,
1550 frame->nb_samples = FFALIGN(s->frame_size * s->frames_per_packet, 4);
1551 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
1554 dst = (float *)frame->extended_data[0];
1563 dst = (float *)frame->extended_data[0];
1564 s->fdsp->vector_fmul_scalar(dst, dst, scale, frame->nb_samples * frame->ch_layout.nb_channels);
1565 frame->nb_samples = s->frame_size * s->frames_per_packet;