Skip to content
  • Timothy B. Terriberry's avatar
    Increase caps/allocation accuracy. · ce6d0904
    Timothy B. Terriberry authored and Jean-Marc Valin's avatar Jean-Marc Valin committed
    This stores the caps array in 32nd bits/sample instead of 1/2 bits
     scaled by LM and the channel count, which is slightly less
     less accurate for the last two bands, and much more accurate for
     all the other bands.
    A constant offset is subtracted to allow it to represent values
     larger than 255 in 8 bits (the range of unoffset values is
     77...304).
    In addition, this replaces the last modeline in the allocation table
     with the caps array, allowing the initial interpolation to
     allocate 8 bits/sample or more, which was otherwise impossible.
    ce6d0904