8853519d89
All the methods used should be compliant with C++14 constexpr rules. However, the number of scales and phases cause GenerateBSincCoeffs to reach the allowed step limit, preventing full compile-time generation. It's not a terribly big deal, it'll generate them very quickly when loading, but it does prevent using shared read-only memory pages.
18 lines
336 B
C
18 lines
336 B
C
#ifndef BSINC_TABLES_H
|
|
#define BSINC_TABLES_H
|
|
|
|
#include "bsinc_defs.h"
|
|
|
|
|
|
struct BSincTable {
|
|
float scaleBase, scaleRange;
|
|
unsigned int m[BSINC_SCALE_COUNT];
|
|
unsigned int filterOffset[BSINC_SCALE_COUNT];
|
|
const float *Tab;
|
|
};
|
|
|
|
extern const BSincTable bsinc12;
|
|
extern const BSincTable bsinc24;
|
|
|
|
#endif /* BSINC_TABLES_H */
|