shithub: opus

Download patch

ref: d50b6287f2a8c6c3deb061ad083c8e854a15cd42
parent: 27fc0c429061e4545a84ef6ea4cb69f4243847c6
author: Jean-Marc Valin <[email protected]>
date: Mon Oct 18 11:26:46 EDT 2010

Removing renormalise_bands()

--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -169,19 +169,6 @@
 
 #endif /* FIXED_POINT */
 
-void renormalise_bands(const CELTMode *m, celt_norm * restrict X, int end, int _C, int M)
-{
-   int i, c;
-   const celt_int16 *eBands = m->eBands;
-   const int C = CHANNELS(_C);
-   for (c=0;c<C;c++)
-   {
-      i=0; do {
-         renormalise_vector(X+M*eBands[i]+c*M*m->shortMdctSize, M*eBands[i+1]-M*eBands[i], Q15ONE);
-      } while (++i<end);
-   }
-}
-
 /* De-normalise the energy to produce the synthesis from the unit-energy bands */
 void denormalise_bands(const CELTMode *m, const celt_norm * restrict X, celt_sig * restrict freq, const celt_ener *bank, int end, int _C, int M)
 {
--- a/libcelt/bands.h
+++ b/libcelt/bands.h
@@ -57,8 +57,6 @@
  */
 void normalise_bands(const CELTMode *m, const celt_sig * restrict freq, celt_norm * restrict X, const celt_ener *bands, int end, int _C, int M);
 
-void renormalise_bands(const CELTMode *m, celt_norm * restrict X, int end, int _C, int M);
-
 /** Denormalise each band of X to restore full amplitude
  * @param m Mode data 
  * @param X Spectrum (returned de-normalised)