Hi,
since getting rid of AVFormatParameters is taking longer than I'd like,
I've decided to dump this as an RFC so people can comment on API
meanwhile.
So here's the second take on reworking private options. It works by
adding new av{codec,format,...}_open_*() functions which take an
AVMetadata parameter. The user fills metadata with option names/values
and passes it to the open call. The options are then automagically
distributed to private contexts.
The advantages of this are:
- the user doesn't need to care about global vs private options.
- demuxer and decoder private options can be done easily.
- it's conceivable to pass the options down from e.g. AVFormatContext
to protocols.
Note that the patchset doesn't yet pass fate, since we need replacements
for all AVFormatParameters usage. Some polishing is also needed.
This tree can be fetched from git://git.khirnov.net/git/libav, branch
opts.
Please comment.
--
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel