Lines Matching refs:last_frame
52 AVFrame *last_frame; member
241 if ((s->flags & GF_OFFSETTING) && s->last_frame && !palette) { in gif_crop_opaque()
242 const uint8_t *ref = s->last_frame->data[0]; in gif_crop_opaque()
243 const int ref_linesize = s->last_frame->linesize[0]; in gif_crop_opaque()
301 int bcid = -1, honor_transparency = (s->flags & GF_TRANSDIFF) && s->last_frame && !palette; in gif_image_write_image()
417 const int ref_linesize = s->last_frame->linesize[0]; in gif_image_write_image()
418 const uint8_t *ref = s->last_frame->data[0] + y_start*ref_linesize + x_start; in gif_image_write_image()
502 if (!s->last_frame && !s->image) { in gif_encode_frame()
503 s->last_frame = av_frame_alloc(); in gif_encode_frame()
504 if (!s->last_frame) in gif_encode_frame()
509 av_frame_unref(s->last_frame); in gif_encode_frame()
510 ret = av_frame_ref(s->last_frame, (AVFrame*)pict); in gif_encode_frame()
531 av_frame_free(&s->last_frame); in gif_encode_close()