Lines Matching defs:frame

41     AVFrame *frame;
55 /* after the frame is displayed, the disposal method is used */
131 static int gif_read_image(GifState *s, AVFrame *frame)
173 /* transparency wasn't set before the first frame, fill with background color */
174 gif_fill(frame, s->bg_color);
178 gif_fill(frame, s->trans_color);
216 gif_fill_rect(frame, s->stored_bg_color, s->gce_l, s->gce_t, s->gce_w, s->gce_h);
218 gif_copy_img_rect(s->stored_img, (uint32_t *)frame->data[0],
219 frame->linesize[0] / sizeof(uint32_t), s->gce_l, s->gce_t, s->gce_w, s->gce_h);
234 av_fast_malloc(&s->stored_img, &s->stored_img_size, frame->linesize[0] * frame->height);
238 gif_copy_img_rect((uint32_t *)frame->data[0], s->stored_img,
239 frame->linesize[0] / sizeof(uint32_t), left, top, pw, height);
256 linesize = frame->linesize[0] / sizeof(uint32_t);
257 ptr1 = (uint32_t *)frame->data[0] + top * linesize + left;
308 /* Graphic Control Extension's scope is single frame.
341 bytestream2_skipu(&s->gb, 2); // delay during which the frame is shown
426 static int gif_parse_next_image(GifState *s, AVFrame *frame)
436 return gif_read_image(s, frame);
459 s->frame = av_frame_alloc();
460 if (!s->frame)
476 s->frame->pts = avpkt->pts;
477 s->frame->pkt_dts = avpkt->dts;
478 s->frame->pkt_duration = avpkt->duration;
496 av_frame_unref(s->frame);
497 if ((ret = ff_get_buffer(avctx, s->frame, 0)) < 0)
504 s->frame->pict_type = AV_PICTURE_TYPE_I;
505 s->frame->key_frame = 1;
509 av_log(avctx, AV_LOG_ERROR, "cannot decode frame without keyframe\n");
513 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0)
516 s->frame->pict_type = AV_PICTURE_TYPE_P;
517 s->frame->key_frame = 0;
520 ret = gif_parse_next_image(s, s->frame);
524 if ((ret = av_frame_ref(rframe, s->frame)) < 0)
536 av_frame_free(&s->frame);