[FFmpeg-devel] [FFmpeg-cvslog] avcodec/aac_tablegen: speed up table initialization

Clément Bœsch u at pkh.me
Fri Nov 27 15:37:43 CET 2015


On Fri, Nov 27, 2015 at 12:40:27PM +0100, Ganesh Ajjanagadde wrote:
[...]
> diff --git a/libavcodec/aac_tablegen.h b/libavcodec/aac_tablegen.h
> index 8b223f9..85e189d 100644
> --- a/libavcodec/aac_tablegen.h
> +++ b/libavcodec/aac_tablegen.h
> @@ -35,9 +35,46 @@ float ff_aac_pow34sf_tab[428];
>  av_cold void ff_aac_tableinit(void)
>  {
>      int i;
> +
> +    /* 2^(i/16) for 0 <= i <= 15 */
> +    const float exp2_lut[] = {

sorry to notice only now; maybe add a static?

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151127/f0f5490e/attachment.sig>


More information about the ffmpeg-devel mailing list