| 394 | } |
| 395 | |
| 396 | static 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 | |
| 420 | static int hw_base_encode_send_frame(AVCodecContext *avctx, FFHWBaseEncodeContext *ctx, |
| 421 | AVFrame *frame) |
no test coverage detected