v1.0.4
-
ArithmeticCoder:- Exposed
buildContextModelmethod to allow customization of the context model creation. - Renamed
_buildModelsto_buildContextModelCachedand updated to usebuildContextModel. - Updated
decodemethod to usemodels.eofsymbol dynamically instead of hardcoded256.
- Exposed
-
ContextModelandContextState:- Added support for order-3 context model:
- Added
ContextStateOrder3with three previous symbols. - Added
ContextModelOrder3with a 3D Fenwick tree structure and a shrink factor to reduce memory usage.
- Added
- Added
ordergetter toContextStateandContextModelto indicate the model order. - Added static
maxContextOrderconstant (value 3) toContextModel. - Updated factory constructor in
ContextModelto support order 3. - Updated all context state classes to implement
ordergetter. - Updated all context model classes to implement
ordergetter. ContextModelOrder3:- Uses a 3D list of Fenwicks with size reduction on the 3rd dimension.
- Added support for order-3 context model: