[FFmpeg-devel] [PATCHv3 3/3] avcodec/cbrt_tablegen: avoid pow and speed up cbrt_tableinit
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Thu Nov 26 17:59:03 CET 2015
On Thu, Nov 26, 2015 at 10:39 AM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> Hi,
>
> On Thu, Nov 26, 2015 at 10:23 AM, Ganesh Ajjanagadde
> <gajjanagadde at gmail.com> wrote:
>>
>> #if CONFIG_HARDCODED_TABLES
>> +#include "libavutil/tablegen.h"
>> #if USE_FIXED
>> #define cbrt_tableinit_fixed()
>> #include "libavcodec/cbrt_fixed_tables.h"
>> @@ -43,19 +45,19 @@
>> #include "libavcodec/cbrt_tables.h"
>> #endif
>> #else
>> +#include "libavutil/libm.h"
>> static uint32_t cbrt_tab[1 << 13];
>
>
> In cbrt_tablegen_template.c:
>
> #include <stdlib.h>
> #define CONFIG_HARDCODED_TABLES 0
> #include "cbrt_tablegen.h"
> #include "tableprint.h"
>
> So same comment as for the other patch. (Rest looks good, I think.)
Also noted that lrint needs to go into the avutil/tablegen.h.
>
> Ronald
More information about the ffmpeg-devel
mailing list