MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / hw_base_encode_check_frame

Function hw_base_encode_check_frame

libavcodec/hw_base_encode.c:396–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396static int hw_base_encode_check_frame(FFHWBaseEncodeContext *ctx,
397 const AVFrame *frame)
398{
399 if ((frame->crop_top || frame->crop_bottom ||
400 frame->crop_left || frame->crop_right) && !ctx->crop_warned) {
401 av_log(ctx->log_ctx, AV_LOG_WARNING, "Cropping information on input "
402 "frames ignored due to lack of API support.\n");
403 ctx->crop_warned = 1;
404 }
405
406 if (!ctx->roi_allowed) {
407 AVFrameSideData *sd =
408 av_frame_get_side_data(frame, AV_FRAME_DATA_REGIONS_OF_INTEREST);
409
410 if (sd && !ctx->roi_warned) {
411 av_log(ctx->log_ctx, AV_LOG_WARNING, "ROI side data on input "
412 "frames ignored due to lack of driver support.\n");
413 ctx->roi_warned = 1;
414 }
415 }
416
417 return 0;
418}
419
420static int hw_base_encode_send_frame(AVCodecContext *avctx, FFHWBaseEncodeContext *ctx,
421 AVFrame *frame)

Callers 1

Calls 2

av_logFunction · 0.85
av_frame_get_side_dataFunction · 0.85

Tested by

no test coverage detected