[FFmpeg-devel] [PATCH] lavu/mem: extend documentation for av_dynarray_add()

Stefano Sabatini stefasab at gmail.com
Sat May 4 16:02:31 CEST 2013


On date Sunday 2013-04-28 00:48:45 +0200, Nicolas George encoded:
> L'octidi 8 floréal, an CCXXI, Stefano Sabatini a écrit :
> > I'm skipping this since I'm not sure it is a good idea to expose
> > implementation details in the doxy.
> 
> The fact that the implementation is efficient is integral to the API. If it
> is not said in the docs, the obvious reaction is to think that the array is
> reallocated each time (because there is no additional parameter to store the
> allocated size), which makes it useless when efficiency is needed.
> 
> The fact that is done at the powers of two may be considered an
> implementation detail, but it also explain how the API can work without the
> additional variable.

Updated.
-- 
FFmpeg = Fanciful and Faithless Maxi Programmable Extravagant Gladiator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-lavu-mem-extend-documentation-for-av_dynarray_add.patch
Type: text/x-diff
Size: 1469 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130504/fe35bb9f/attachment.bin>


More information about the ffmpeg-devel mailing list