Lines Matching refs:frame
46 AVFrame *frame;
62 AVFrame *frame = cpia->frame;
95 frame->pict_type = AV_PICTURE_TYPE_I;
96 frame->key_frame = 1;
98 frame->pict_type = AV_PICTURE_TYPE_P;
99 frame->key_frame = 0;
102 // Get buffer filled with previous frame
103 if ((ret = ff_reget_buffer(avctx, frame)) < 0)
108 i < frame->height;
116 av_frame_set_decode_error_flags(frame, FF_DECODE_ERROR_INVALID_BITSTREAM);
121 av_frame_set_decode_error_flags(frame, FF_DECODE_ERROR_INVALID_BITSTREAM);
129 y = &frame->data[0][i * frame->linesize[0]];
130 u = &frame->data[1][(i >> 1) * frame->linesize[1]];
131 v = &frame->data[2][(i >> 1) * frame->linesize[2]];
132 y_end = y + frame->linesize[0] - 1;
133 u_end = u + frame->linesize[1] - 1;
134 v_end = v + frame->linesize[2] - 1;
142 av_frame_set_decode_error_flags(frame, FF_DECODE_ERROR_INVALID_BITSTREAM);
162 av_frame_set_decode_error_flags(frame, FF_DECODE_ERROR_INVALID_BITSTREAM);
186 if ((ret = av_frame_ref(data, cpia->frame)) < 0)
207 s->frame = av_frame_alloc();
208 if (!s->frame)
218 av_frame_free(&s->frame);