Make SC16Q11-nodc conversions table-based for speed.

Add a mechanism for converters to initialize tables on demand.
Move UC8 table setup to the new lazy-setup path.
Fix uc8 lookup table allocation size.
This commit is contained in:
Oliver Jowett 2017-01-27 21:58:12 +00:00
parent 8a41bcb730
commit 417cda7061
4 changed files with 252 additions and 88 deletions

View file

@ -276,7 +276,6 @@ struct { // Internal state
unsigned trailing_samples; // extra trailing samples in magnitude buffers
double sample_rate; // actual sample rate in use (in hz)
uint16_t *maglut; // I/Q -> Magnitude lookup table
uint16_t *log10lut; // Magnitude -> log10 lookup table
int exit; // Exit from the main loop when true