Lines Matching defs:frame
440 * @return 0 if OK. 1 if last block of frame. return -1 if
504 /* now check if the block length is coherent with the frame length */
770 /* multiply by the window and add in the frame */
784 /* decode a frame of frame_len samples */
823 static int wma_decode_superframe(AVCodecContext *avctx, AVFrame *frame,
840 frame->nb_samples = s->frame_len;
841 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
845 memcpy(frame->extended_data[i], &s->frame_out[i][0],
846 frame->nb_samples * sizeof(s->frame_out[i][0]));
865 /* read super frame header */
866 skip_bits(&s->gb, 4); /* super frame index */
897 frame->nb_samples = nb_frames * s->frame_len;
898 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
900 samples = (float **) frame->extended_data;
907 "Invalid last frame bit offset %d > buf size %d (%d)\n",
913 /* add bit_offset bits to last frame */
927 /* XXX: bit_offset bits into last frame */
933 /* this frame is stored in the last superframe and in the
941 /* read each frame starting from bit_offset */
957 /* we copy the end of the frame in the last frame buffer */
970 /* single frame decode */