[CELT-dev] compute_ebands

Hamid Zare Doust hzdoust at googlemail.com
Mon Feb 8 13:53:46 PST 2010


Hi All,

Is the following loop in function compute_ebands meant to work out the
nearest celt frequency bin to a bark critical band?  If so why an
offset is required to be considered? Thanks in advance if somebody can
explain it.

Thanks,
Hamid

   /* Spacing follows critical bands */
   for (i=0;i<high;i++)
   {
      int target = bark_freq[lin+i];
      eBands[i+low] = (2*target+offset+res)/(2*res);
      offset = eBands[i+low]*res - target;
   }



More information about the celt-dev mailing list