Lines Matching defs:picture
526 AVPicture picture;
541 av_image_fill_linesizes(picture.linesize, avctx->pix_fmt, w);
547 unaligned |= picture.linesize[i] % pool->stride_align[i];
550 tmpsize = av_image_fill_pointers(picture.data, avctx->pix_fmt, h,
551 NULL, picture.linesize);
555 for (i = 0; i < 3 && picture.data[i + 1]; i++)
556 size[i] = picture.data[i + 1] - picture.data[i];
557 size[i] = tmpsize - (picture.data[i] - picture.data[0]);
561 pool->linesize[i] = picture.linesize[i];
2254 int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
2274 av_frame_unref(picture);
2287 ret = ff_thread_decode_frame(avctx, picture, got_picture_ptr,
2290 ret = avctx->codec->decode(avctx, picture, got_picture_ptr,
2292 picture->pkt_dts = avpkt->dts;
2295 av_frame_set_pkt_pos(picture, avpkt->pos);
2300 if (!picture->sample_aspect_ratio.num) picture->sample_aspect_ratio = avctx->sample_aspect_ratio;
2301 if (!picture->width) picture->width = avctx->width;
2302 if (!picture->height) picture->height = avctx->height;
2303 if (picture->format == AV_PIX_FMT_NONE) picture->format = avctx->pix_fmt;
2306 add_metadata_from_side_data(avctx, picture);
2320 int err = unrefcount_frame(avci, picture);
2326 av_frame_set_best_effort_timestamp(picture,
2328 picture->pkt_pts,
2329 picture->pkt_dts));
2331 av_frame_unref(picture);
2337 av_assert0(!picture->extended_data || picture->extended_data == picture->data);