Lines Matching defs:picture
194 AVFrame *picture;
207 picture= avcodec_alloc_frame();
238 picture->data[0] = picture_buf;
239 picture->data[1] = picture->data[0] + size;
240 picture->data[2] = picture->data[1] + size / 4;
241 picture->linesize[0] = c->width;
242 picture->linesize[1] = c->width / 2;
243 picture->linesize[2] = c->width / 2;
252 picture->data[0][y * picture->linesize[0] + x] = x + y + i * 3;
259 picture->data[1][y * picture->linesize[1] + x] = 128 + y + i * 2;
260 picture->data[2][y * picture->linesize[2] + x] = 64 + x + i * 5;
265 out_size = avcodec_encode_video(c, outbuf, outbuf_size, picture);
291 av_free(picture);
317 AVFrame *picture;
334 picture= avcodec_alloc_frame();
380 len = avcodec_decode_video(c, picture, &got_picture,
390 /* the picture is allocated by the decoder. no need to
393 pgm_save(picture->data[0], picture->linesize[0],
405 len = avcodec_decode_video(c, picture, &got_picture,
411 /* the picture is allocated by the decoder. no need to
414 pgm_save(picture->data[0], picture->linesize[0],
423 av_free(picture);