#ifndef BANDS_H
#define BANDS_H
+#include "modes.h"
+
+/* Number of constant-energy bands */
#define NBANDS 15
+/* Number of bands only for the pitch prediction */
+#define PBANDS 5
+
+void compute_band_energies(const CELTMode *m, float *X, float *bands);
+
+void normalise_bands(const CELTMode *m, float *X, float *bands);
+
+void denormalise_bands(const CELTMode *m, float *X, float *bands);
-void compute_bands(float *X, int B, float *bands);
+void compute_pitch_gain(const CELTMode *m, float *X, float *P, float *gains, float *bank);
-void normalise_bands(float *X, int B, float *bands);
+void pitch_quant_bands(float *X, int B, float *P, float *gains);
-void denormalise_bands(float *X, int B, float *bands);
+void quant_bands(float *X, int B, float *P);
void pitch_renormalise_bands(float *X, int B, float *P);