Lines Matching defs:picture
218 AVFrame *picture;
231 picture= avcodec_alloc_frame();
262 picture->data[0] = picture_buf;
263 picture->data[1] = picture->data[0] + size;
264 picture->data[2] = picture->data[1] + size / 4;
265 picture->linesize[0] = c->width;
266 picture->linesize[1] = c->width / 2;
267 picture->linesize[2] = c->width / 2;
276 picture->data[0][y * picture->linesize[0] + x] = x + y + i * 3;
283 picture->data[1][y * picture->linesize[1] + x] = 128 + y + i * 2;
284 picture->data[2][y * picture->linesize[2] + x] = 64 + x + i * 5;
289 out_size = avcodec_encode_video(c, outbuf, outbuf_size, picture);
315 av_free(picture);
342 AVFrame *picture;
362 picture= avcodec_alloc_frame();
408 len = avcodec_decode_video2(c, picture, &got_picture, &avpkt);
417 /* the picture is allocated by the decoder. no need to
420 pgm_save(picture->data[0], picture->linesize[0],
434 len = avcodec_decode_video2(c, picture, &got_picture, &avpkt);
439 /* the picture is allocated by the decoder. no need to
442 pgm_save(picture->data[0], picture->linesize[0],
451 av_free(picture);