Lines Matching defs:frame
32 AVFrame *frame;
65 if (!(frame = av_frame_alloc()) ) {
66 av_log(log_ctx, AV_LOG_ERROR, "Failed to alloc frame\n");
73 av_log(log_ctx, AV_LOG_ERROR, "Failed to read frame from file\n");
77 ret = avcodec_decode_video2(codec_ctx, frame, &frame_decoded, &pkt);
84 *w = frame->width;
85 *h = frame->height;
86 *pix_fmt = frame->format;
92 av_image_copy(data, linesize, (const uint8_t **)frame->data, frame->linesize, *pix_fmt, *w, *h);
98 av_freep(&frame);