[FFmpeg-devel] [PATCH 0/3] Finish new iteration APIs

Tobias Rapp t.rapp at noa-archive.com
Fri Feb 23 09:30:14 EET 2018


On 22.02.2018 16:47, Nicolas George wrote:
> Hi.
> 
> Not sure where in the thread would be the best place to reply, so I
> might as well reply here.
> 
> There is one idea I have been toying with for some time that relates to
> codec registration. It is significantly different from the direction
> this discussion was taking, but I think it offers a lot of advantages.
> 
> Let us have "struct AVCodecLibrary" with the lists of codecs, bsfs, etc.
> Whenever a function needs to access the lists, have it take an
> AVCodecLibrary argument. It can be made automatic most of the time by
> adding an AVCodecLibrary field to all AVSomethingContext structs.
> 
> [...]
> 
> The same structure could be used to set all mutable global state, like
> the log level and callback.

I like the idea of storing global context within some structure.

Regards,
Tobias



More information about the ffmpeg-devel mailing list