On Sat, 26 Jan 2013 15:08:00 +0100, Anton Khirnov <[email protected]> wrote:
> Main from the first version are:
> 1/8: included Ronald's atomics patch with my changes
> 2/8:
>     - av_buffer_realloc() should now work properly
>     - added av_buffer_allocz()
> 3/8: new lock-free buffer pool API
> 8/8: added metadata (was not meta enough before)
> 
> RFC:
>     - av_get_frame_defaults() -- is it actually needed? I cannot think
>       of a situation where it would be more appropriate than
>       av_frame_unref().
>     - av_frame_get_buffer() -- wondering if i should add an alloc
>       callback to it, so that it can be used with buffer pools. Othewise
>       I have to basically duplicate the same code in lavc, but with
>       av_buffer_alloc() -> av_buffer_alloc_pool()

Martin suggested on IRC to call the function to get a buffer from the pool
av_buffer_pool_get(), which is nicely consistent with the av_buffer_pool_*
namespace, but now the functions for allocating a buffer and allocating a buffer
from the pool have very different names.
I'm not quite decided which one is better, so opinions and/or other suggestions
are welcome.

Also ping on the above two RFCs.

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to