Refactor the entropy coder.
This unifies the byte buffer, encoder, and decoder into a single struct. The common encoder and decoder functions (such as ec_tell()) can operate on either one, simplifying code which uses both. The precision argument to ec_tell() has been removed. It now comes in two precisions: ec_tell() gives 1 bit precision in two operations, and ec_tell_frac() gives 1/8th bit precision in... somewhat more. ec_{enc|dec}_bit_prob() were removed (they are no longer needed). Some of the byte buffer access functions were made static and removed from the cross-module API. All of the code in rangeenc.c and rangedec.c was merged into entenc.c and entdec.c, respectively, as we are no longer considering alternative backends. rangeenc.c and rangede.c have been removed entirely. This passes make check, after disabling the modes that we removed support for in cf5d3a8c.
Showing
- libcelt/Makefile.am 1 addition, 2 deletionslibcelt/Makefile.am
- libcelt/bands.c 17 additions, 21 deletionslibcelt/bands.c
- libcelt/bands.h 1 addition, 1 deletionlibcelt/bands.h
- libcelt/celt.c 34 additions, 38 deletionslibcelt/celt.c
- libcelt/entcode.c 33 additions, 9 deletionslibcelt/entcode.c
- libcelt/entcode.h 71 additions, 27 deletionslibcelt/entcode.h
- libcelt/entdec.c 186 additions, 12 deletionslibcelt/entdec.c
- libcelt/entdec.h 24 additions, 63 deletionslibcelt/entdec.h
- libcelt/entenc.c 211 additions, 40 deletionslibcelt/entenc.c
- libcelt/entenc.h 27 additions, 57 deletionslibcelt/entenc.h
- libcelt/quant_bands.c 10 additions, 16 deletionslibcelt/quant_bands.c
- libcelt/rangedec.c 0 additions, 260 deletionslibcelt/rangedec.c
- libcelt/rangeenc.c 0 additions, 267 deletionslibcelt/rangeenc.c
- libcelt/rate.c 9 additions, 9 deletionslibcelt/rate.c
- libcelt/rate.h 1 addition, 2 deletionslibcelt/rate.h
- tests/cwrs32-test.c 0 additions, 2 deletionstests/cwrs32-test.c
- tests/ectest.c 36 additions, 45 deletionstests/ectest.c
- tests/laplace-test.c 2 additions, 8 deletionstests/laplace-test.c
- tests/tandem-test.c 3 additions, 3 deletionstests/tandem-test.c
Loading
Please register or sign in to comment