Lines Matching refs:frame
74 AVFrame *frame;
142 s->frame = av_frame_alloc();
143 if (!s->frame)
189 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0)
192 pixels = s->frame->data[0];
193 pixel_limit = s->avctx->height * s->frame->linesize[0];
284 y_ptr += line_packets * s->frame->linesize[0];
289 pixel_ptr= y_ptr + s->frame->linesize[0] - 1;
324 y_ptr += s->frame->linesize[0];
335 y_ptr += starting_line * s->frame->linesize[0];
372 y_ptr += s->frame->linesize[0];
378 /* set the whole frame to color 0 (which is usually black) */
380 s->frame->linesize[0] * s->avctx->height);
385 * FLI frame and it will update the entire frame. */
427 y_ptr += s->frame->linesize[0];
432 /* copy the chunk (uncompressed frame) */
438 for (y_ptr = 0; y_ptr < s->frame->linesize[0] * s->avctx->height;
439 y_ptr += s->frame->linesize[0]) {
468 /* by the end of the chunk, the stream ptr should equal the frame
476 memcpy(s->frame->data[1], s->palette, AVPALETTE_SIZE);
478 s->frame->palette_has_changed = 1;
482 if ((ret = av_frame_ref(rframe, s->frame)) < 0)
523 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0)
526 pixels = s->frame->data[0];
527 pixel_limit = s->avctx->height * s->frame->linesize[0];
559 * include one of these chunks in their first frame.
581 y_ptr += line_packets * s->frame->linesize[0];
614 y_ptr += s->frame->linesize[0];
625 /* set the whole frame to 0x0000 which is black in both 15Bpp and 16Bpp modes. */
627 s->frame->linesize[0] * s->avctx->height);
682 y_ptr += s->frame->linesize[0];
726 y_ptr += s->frame->linesize[0];
732 /* copy the chunk (uncompressed frame) */
741 for (y_ptr = 0; y_ptr < s->frame->linesize[0] * s->avctx->height;
742 y_ptr += s->frame->linesize[0]) {
778 /* by the end of the chunk, the stream ptr should equal the frame
784 if ((ret = av_frame_ref(rframe, s->frame)) < 0)
823 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0)
826 pixels = s->frame->data[0];
827 pixel_limit = s->avctx->height * s->frame->linesize[0];
859 * include one of these chunks in their first frame.
881 y_ptr += line_packets * s->frame->linesize[0];
915 y_ptr += s->frame->linesize[0];
926 /* set the whole frame to 0x00 which is black for 24 bit mode. */
928 s->frame->linesize[0] * s->avctx->height);
970 y_ptr += s->frame->linesize[0];
1015 y_ptr += s->frame->linesize[0];
1021 /* copy the chunk (uncompressed frame) */
1027 for (y_ptr = 0; y_ptr < s->frame->linesize[0] * s->avctx->height;
1028 y_ptr += s->frame->linesize[0]) {
1058 /* by the end of the chunk, the stream ptr should equal the frame
1064 if ((ret = av_frame_ref(rframe, s->frame)) < 0)
1072 static int flic_decode_frame(AVCodecContext *avctx, AVFrame *frame,
1078 return flic_decode_frame_8BPP(avctx, frame, got_frame,
1082 return flic_decode_frame_15_16BPP(avctx, frame, got_frame,
1085 return flic_decode_frame_24BPP(avctx, frame, got_frame,
1102 av_frame_free(&s->frame);