On 27/09/2019 12:28, Roman Arzumanyan wrote:
First, this needs SDK Version Guards
Thanks, I've missed that. Added to patch.

Second, in what way is this different from the existing global 
option(avctx->refs), which nvenc.c already uses to set
It's slightly different from existing global option (gives more fine-grain 
control):
"nb_ref_frames" effectively specifies maximum allowed number of reference frames in 
L0 and L1 reference lists for every P & B frame;
"avctx->refs" effectively specifies DPB size;

I feel like the new fields match much better with the -refs option. As in, avctx->refs sets this, and a dedicated option sets the maximum DPB size. But now it's too late and changing it would be an API break. So a new option is what it's going to be.

Patch looks good to me now. Will give it a test later and apply it if nothing goes horribly wrong.

Would you be opposed to naming the CLI option just "nb_refs"? De-clutters the command line a bit, but no strong opinion there from my side.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to