Lines Matching defs:picture
193 static AVFrame *picture, *tmp_picture;
245 AVFrame *picture;
249 picture = avcodec_alloc_frame();
250 if (!picture)
255 av_free(picture);
258 avpicture_fill((AVPicture *)picture, picture_buf,
260 return picture;
295 /* allocate the encoded raw picture */
296 picture = alloc_picture(c->pix_fmt, c->width, c->height);
297 if (!picture) {
298 fprintf(stderr, "Could not allocate picture\n");
303 picture is needed too. It is then converted to the required
309 fprintf(stderr, "Could not allocate temporary picture\n");
349 passing the same picture again */
352 /* as we only generate a YUV420P picture, we must convert it
367 0, c->height, picture->data, picture->linesize);
369 fill_yuv_image(picture, frame_count, c->width, c->height);
382 pkt.data= (uint8_t *)picture;
388 out_size = avcodec_encode_video(c, video_outbuf, video_outbuf_size, picture);
418 av_free(picture->data[0]);
419 av_free(picture);