compressai.ans#

Range Asymmetric Numeral System (rANS) bindings. rANS can be used as a replacement for a traditional range coder.

Based on the original C++ implementation from Fabian “ryg” Giesen (github link).

RansEncoder#

class compressai.ans.RansEncoder#

RansDecoder#

class compressai.ans.RansDecoder#