Lines Matching refs:frame
38 AVFrame *frame;
47 vid->frame = av_frame_alloc();
48 if (!vid->frame)
56 uint32_t *palette = (uint32_t *)ctx->frame->data[1];
66 ctx->frame->palette_has_changed = 1;
82 if ((ret = ff_reget_buffer(avctx, vid->frame, 0)) < 0)
84 wrap_to_next_line = vid->frame->linesize[0] - avctx->width;
95 dst = vid->frame->data[0];
96 frame_end = vid->frame->data[0] + vid->frame->linesize[0] * avctx->height;
111 dst += vid->frame->linesize[0] * yoffset;
123 // copy any bytes starting at the current position, and ending at the frame width
130 dst += remaining + wrap_to_next_line; // skip over extra bytes at end of frame
146 if ((ret = av_frame_ref(rframe, vid->frame)) < 0)
157 av_frame_free(&vid->frame);