|
|
|
@ -538,6 +538,7 @@ static void dump_video_av1_param(AVCodecContext *avctx, QSVEncContext *q, |
|
|
|
|
av_log(avctx, AV_LOG_VERBOSE, "WriteIVFHeaders: %s \n", |
|
|
|
|
print_threestate(av1_bs_param->WriteIVFHeaders)); |
|
|
|
|
av_log(avctx, AV_LOG_VERBOSE, "LowDelayBRC: %s\n", print_threestate(co3->LowDelayBRC)); |
|
|
|
|
av_log(avctx, AV_LOG_VERBOSE, "MaxFrameSize: %d;\n", co2->MaxFrameSize); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
@ -1034,6 +1035,8 @@ static int init_video_param(AVCodecContext *avctx, QSVEncContext *q) |
|
|
|
|
q->extco2.AdaptiveI = q->adaptive_i ? MFX_CODINGOPTION_ON : MFX_CODINGOPTION_OFF; |
|
|
|
|
if (q->adaptive_b >= 0) |
|
|
|
|
q->extco2.AdaptiveB = q->adaptive_b ? MFX_CODINGOPTION_ON : MFX_CODINGOPTION_OFF; |
|
|
|
|
if (q->max_frame_size >= 0) |
|
|
|
|
q->extco2.MaxFrameSize = q->max_frame_size; |
|
|
|
|
|
|
|
|
|
q->extco2.Header.BufferId = MFX_EXTBUFF_CODING_OPTION2; |
|
|
|
|
q->extco2.Header.BufferSz = sizeof(q->extco2); |
|
|
|
|