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

Nicolas George nicolas.george at normalesup.org
Sun Apr 28 00:48:45 CEST 2013

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.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130428/65eda8f0/attachment.asc>

More information about the ffmpeg-devel mailing list