[FFmpeg-devel] [PATCH] lavc/aacenc_quantization: use cbrt table

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu Mar 10 09:12:56 CET 2016

On 10.03.2016, at 00:49, Ganesh Ajjanagadde <gajjanag at gmail.com> wrote:

> There is no reason for computing cbrtf at runtime; we have a table for
> this.
> Cruft needed due to the build system, the people who still like using
> hardcoded tables and need for single cbrt_tab across the code.

Could you please explain what exactly the problem is?
Why would you need cbrt_table.c for example? You can just conditionally include it from cbrt_data.c for example.
Hardcoded tables are meant to only change when the initialization code is run, not where the resulting data is located, i.e. it should only ever replace a
int table[size];
const int table[size] = { data };
(though with the indirection of placing the second one in a header)

More information about the ffmpeg-devel mailing list