Lines Matching refs:frame
165 const AVFrame *frame,
179 if (frame) {
180 if (frame->width != ctx->config->width ||
181 frame->height != ctx->config->height) {
186 frame->width, frame->height);
191 if (frame->format != avctx->pix_fmt) {
196 av_get_pix_fmt_name(frame->format));
202 input_pic = ctx->api->picture_alloc(frame->width, frame->height);
209 // Copy pixels from frame to input_pic.
218 frame->width,
219 frame->width / 2,
220 frame->width / 2,
224 (const uint8_t **)frame->data, frame->linesize,
225 frame->format, frame->width, frame->height);
228 input_pic->pts = frame->pts;
237 av_log(avctx, AV_LOG_ERROR, "Failed to encode frame.\n");