Lines Matching refs:frame
47 AVFrame *frame;
63 AVFrame *frame = cpia->frame;
96 frame->pict_type = AV_PICTURE_TYPE_I;
97 frame->key_frame = 1;
99 frame->pict_type = AV_PICTURE_TYPE_P;
100 frame->key_frame = 0;
103 // Get buffer filled with previous frame
104 if ((ret = ff_reget_buffer(avctx, frame, 0)) < 0)
109 i < frame->height;
118 frame->decode_error_flags = FF_DECODE_ERROR_INVALID_BITSTREAM;
123 frame->decode_error_flags = FF_DECODE_ERROR_INVALID_BITSTREAM;
131 y = &frame->data[0][i * frame->linesize[0]];
132 u = &frame->data[1][(i >> 1) * frame->linesize[1]];
133 v = &frame->data[2][(i >> 1) * frame->linesize[2]];
134 y_end = y + frame->linesize[0] - 1;
135 u_end = u + frame->linesize[1] - 1;
136 v_end = v + frame->linesize[2] - 1;
144 frame->decode_error_flags = FF_DECODE_ERROR_INVALID_BITSTREAM;
164 frame->decode_error_flags = FF_DECODE_ERROR_INVALID_BITSTREAM;
188 if ((ret = av_frame_ref(rframe, cpia->frame)) < 0)
209 s->frame = av_frame_alloc();
210 if (!s->frame)
220 av_frame_free(&s->frame);