Increase caps/allocation accuracy.
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.
Showing
- libcelt/celt.c 13 additions, 6 deletionslibcelt/celt.c
- libcelt/modes.c 1 addition, 2 deletionslibcelt/modes.c
- libcelt/rate.c 7 additions, 6 deletionslibcelt/rate.c
- libcelt/static_modes_fixed.c 2 additions, 2 deletionslibcelt/static_modes_fixed.c
- libcelt/static_modes_float.c 2 additions, 2 deletionslibcelt/static_modes_float.c
Loading
Please register or sign in to comment