aboutsummaryrefslogtreecommitdiffstats
path: root/core/cubic_defs.h
blob: f3ded415291f8277c61b342045f997c591747d28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef CORE_CUBIC_DEFS_H
#define CORE_CUBIC_DEFS_H

#include <array>

/* The number of distinct phase intervals within the cubic filter tables. */
constexpr unsigned int CubicPhaseBits{5};
constexpr unsigned int CubicPhaseCount{1 << CubicPhaseBits};

struct CubicCoefficients {
    std::array<float,4> mCoeffs;
    std::array<float,4> mDeltas;
};

#endif /* CORE_CUBIC_DEFS_H */