Rework CWRS code.
This eliminates an extra O(nm) lookups on decode, and reduces the rate control from O(nm^2) to O(nm), in addition to eliminating O(m) lookups on both encode and decode. Although the interface is slightly more complex, the internal code is also simpler.
Showing
- libcelt/cwrs.c 199 additions, 231 deletionslibcelt/cwrs.c
- libcelt/cwrs.h 18 additions, 11 deletionslibcelt/cwrs.h
- libcelt/rate.c 7 additions, 1 deletionlibcelt/rate.c
- tests/cwrs32-test.c 15 additions, 12 deletionstests/cwrs32-test.c
- tests/cwrs64-test.c 16 additions, 13 deletionstests/cwrs64-test.c
Loading
Please register or sign in to comment