diff options
author | Chris Robinson <[email protected]> | 2020-12-04 07:35:40 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-04 11:15:50 -0800 |
commit | 84d47f7d4c2d1355a6eb914dd091b39683f83c15 (patch) | |
tree | 5e8266a74e7821d47e8d1bc0e14cd7570fef6bf5 /core/bsinc_defs.h | |
parent | 36c1589c11cb8f197576e748e06bc5fbb6dcc8bf (diff) |
Move the bsinc tables to core
Diffstat (limited to 'core/bsinc_defs.h')
-rw-r--r-- | core/bsinc_defs.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/bsinc_defs.h b/core/bsinc_defs.h new file mode 100644 index 00000000..43865289 --- /dev/null +++ b/core/bsinc_defs.h @@ -0,0 +1,16 @@ +#ifndef CORE_BSINC_DEFS_H +#define CORE_BSINC_DEFS_H + +/* The number of distinct scale and phase intervals within the filter table. */ +constexpr unsigned int BSincScaleBits{4}; +constexpr unsigned int BSincScaleCount{1 << BSincScaleBits}; +constexpr unsigned int BSincPhaseBits{5}; +constexpr unsigned int BSincPhaseCount{1 << BSincPhaseBits}; + +/* The maximum number of sample points for the bsinc filters. The max points + * includes the doubling for downsampling, so the maximum number of base sample + * points is 24, which is 23rd order. + */ +constexpr unsigned int BSincPointsMax{48}; + +#endif /* CORE_BSINC_DEFS_H */ |