Lines Matching refs:last_frame
52 AVFrame *last_frame;
75 s->last_frame = av_frame_alloc();
76 if (!s->last_frame)
96 unsigned offset = (mb_y*16 + ((j&2)<<2) + mv_y)*t->last_frame->linesize[0] + mb_x*16 + ((j&1)<<3) + mv_x;
97 if (offset >= (t->avctx->height - 7) * t->last_frame->linesize[0] - 7)
101 t->last_frame->data[0] + offset,
102 t->last_frame->linesize[0], add);
105 unsigned offset = (mb_y * 8 + (mv_y/2))*t->last_frame->linesize[index] + mb_x * 8 + (mv_x/2);
106 if (offset >= (t->avctx->height/2 - 7) * t->last_frame->linesize[index] - 7)
110 t->last_frame->data[index] + offset,
111 t->last_frame->linesize[index], add);
219 if (s->last_frame->data[0])
277 av_frame_unref(s->last_frame);
287 if (inter && !s->last_frame->data[0]) {
289 ret = ff_get_buffer(avctx, s->last_frame, AV_GET_BUFFER_FLAG_REF);
292 memset(s->last_frame->data[0], 0, s->last_frame->height *
293 s->last_frame->linesize[0]);
294 memset(s->last_frame->data[1], 0x80, s->last_frame->height / 2 *
295 s->last_frame->linesize[1]);
296 memset(s->last_frame->data[2], 0x80, s->last_frame->height / 2 *
297 s->last_frame->linesize[2]);
317 av_frame_unref(s->last_frame);
318 if ((ret = av_frame_ref(s->last_frame, frame)) < 0)
328 av_frame_free(&t->last_frame);