Lines Matching defs:frame
63 #define AMR_BLOCK_SIZE 160 ///< samples per frame
102 AMRNBFrame frame; ///< decoded AMR parameters (lsf coefficients, codebook indexes, etc)
103 uint8_t bad_frame_indicator; ///< bad frame ? 1 : 0
107 double lsp[4][LP_FILTER_ORDER]; ///< lsp vectors from current frame
108 double prev_lsp_sub4[LP_FILTER_ORDER]; ///< lsp vector for the 4th subframe of the previous frame
207 * Unpack an RFC4867 speech frame into the AMR frame mode and parameters.
215 * @return the frame mode
223 mode = buf[0] >> 3 & 0x0F; // frame type
231 ff_amr_bit_reorder((uint16_t *) &p->frame, sizeof(AMRNBFrame), buf + 1,
268 * @param update store data for computing the next frame's LSFs
310 const uint16_t *lsf_param = p->frame.lsf;
339 const uint16_t *lsf_param = p->frame.lsf;
360 // store data for computing the next frame's LSFs
443 * Decode a 10-bit algebraic codebook index from a 10.2 kbit/s frame.
506 * @param mode mode of the current frame
559 * @param mode mode of the current frame
594 * @param mode mode of the current frame
636 * @param mode mode of the current frame
658 gains = gains_MODE_4k75[(p->frame.subframe[subframe & 2].p_gain << 1) + (subframe & 1)];
958 static int amrnb_decode_frame(AVCodecContext *avctx, AVFrame *frame,
968 frame->nb_samples = AMR_BLOCK_SIZE;
969 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
979 float *buf_out = (float *)frame->extended_data[ch];
1004 const AMRNBSubframe *amr_subframe = &p->frame.subframe[subframe];
1083 * Note that lsf_avg should not incorporate the current frame's LSFs