-#define CB_UNSIGNED 0x01 ///< coefficients are coded as absolute values
-#define CB_PAIRS 0x02 ///< coefficients are grouped into pairs before coding (quads by default)
-#define CB_ESCAPE 0x04 ///< codebook allows escapes
-
-/** spectral coefficients codebook information */
-static const struct {
- int16_t maxval; ///< maximum possible value
- int8_t cb_num; ///< codebook number
- uint8_t flags; ///< codebook features
-} aac_cb_info[] = {
- { 0, -1, CB_UNSIGNED }, // zero codebook
- { 1, 0, 0 },
- { 1, 1, 0 },
- { 2, 2, CB_UNSIGNED },
- { 2, 3, CB_UNSIGNED },
- { 4, 4, CB_PAIRS },
- { 4, 5, CB_PAIRS },
- { 7, 6, CB_PAIRS | CB_UNSIGNED },
- { 7, 7, CB_PAIRS | CB_UNSIGNED },
- { 12, 8, CB_PAIRS | CB_UNSIGNED },
- { 12, 9, CB_PAIRS | CB_UNSIGNED },
- { 8191, 10, CB_PAIRS | CB_UNSIGNED | CB_ESCAPE },
- { -1, -1, 0 }, // reserved
- { -1, -1, 0 }, // perceptual noise substitution
- { -1, -1, 0 }, // intensity out-of-phase
- { -1, -1, 0 }, // intensity in-phase
-};
-