Versions in this module Expand all Collapse all v2 v2.3.0 May 12, 2024 v2.2.0 Nov 4, 2023 Changes in this version + const ANS0_TYPE + const ANS1_TYPE + const CM_TYPE + const FAST_LOGISTIC_APM + const FPAQ_TYPE + const HUFFMAN_TYPE + const INCOMPRESSIBLE_THRESHOLD + const LINEAR_APM + const LOGISTIC_APM + const NONE_TYPE + const PAQ_TYPE + const RANGE_TYPE + const RESERVED1 + const RESERVED2 + const RESERVED3 + const RESERVED4 + const RESERVED5 + const RESERVED6 + const TPAQX_TYPE + const TPAQ_TYPE + func DecodeAlphabet(ibs kanzi.InputBitStream, alphabet []int) (int, error) + func EncodeAlphabet(obs kanzi.OutputBitStream, alphabet []int) (int, error) + func GetName(entropyType uint32) (string, error) + func GetType(entropyName string) (uint32, error) + func NewEntropyDecoder(ibs kanzi.InputBitStream, ctx map[string]interface{}, entropyType uint32) (kanzi.EntropyDecoder, error) + func NewEntropyEncoder(obs kanzi.OutputBitStream, ctx map[string]interface{}, entropyType uint32) (kanzi.EntropyEncoder, error) + func NormalizeFrequencies(freqs []int, alphabet []int, totalFreq, scale int) (int, error) + func ReadVarInt(bs kanzi.InputBitStream) uint32 + func WriteVarInt(bs kanzi.OutputBitStream, value uint32) int + type ANSRangeDecoder struct + func NewANSRangeDecoder(bs kanzi.InputBitStream, args ...uint) (*ANSRangeDecoder, error) + func NewANSRangeDecoderWithCtx(bs kanzi.InputBitStream, ctx *map[string]interface{}, args ...uint) (*ANSRangeDecoder, error) + func (this *ANSRangeDecoder) BitStream() kanzi.InputBitStream + func (this *ANSRangeDecoder) Dispose() + func (this *ANSRangeDecoder) Read(block []byte) (int, error) + type ANSRangeEncoder struct + func NewANSRangeEncoder(bs kanzi.OutputBitStream, args ...uint) (*ANSRangeEncoder, error) + func NewANSRangeEncoderWithCtx(bs kanzi.OutputBitStream, ctx *map[string]interface{}, args ...uint) (*ANSRangeEncoder, error) + func (this *ANSRangeEncoder) BitStream() kanzi.OutputBitStream + func (this *ANSRangeEncoder) Dispose() + func (this *ANSRangeEncoder) Write(block []byte) (int, error) + type AdaptiveProbMap interface + Get func(bit int, pr int, ctx int) int + func NewAdaptiveProbMap(mapType int, n, rate uint) (AdaptiveProbMap, error) + type BinaryEntropyDecoder struct + func NewBinaryEntropyDecoder(bs kanzi.InputBitStream, predictor kanzi.Predictor) (*BinaryEntropyDecoder, error) + func (this *BinaryEntropyDecoder) BitStream() kanzi.InputBitStream + func (this *BinaryEntropyDecoder) DecodeBit(pred int) byte + func (this *BinaryEntropyDecoder) DecodeByte() byte + func (this *BinaryEntropyDecoder) Dispose() + func (this *BinaryEntropyDecoder) Read(block []byte) (int, error) + type BinaryEntropyEncoder struct + func NewBinaryEntropyEncoder(bs kanzi.OutputBitStream, predictor kanzi.Predictor) (*BinaryEntropyEncoder, error) + func (this *BinaryEntropyEncoder) BitStream() kanzi.OutputBitStream + func (this *BinaryEntropyEncoder) Dispose() + func (this *BinaryEntropyEncoder) EncodeBit(bit byte, pred int) + func (this *BinaryEntropyEncoder) EncodeByte(val byte) + func (this *BinaryEntropyEncoder) Write(block []byte) (int, error) + type CMPredictor struct + func NewCMPredictor(ctx *map[string]interface{}) (*CMPredictor, error) + func (this *CMPredictor) Get() int + func (this *CMPredictor) Update(bit byte) + type ExpGolombDecoder struct + func NewExpGolombDecoder(bs kanzi.InputBitStream, sgn bool) (*ExpGolombDecoder, error) + func (this *ExpGolombDecoder) BitStream() kanzi.InputBitStream + func (this *ExpGolombDecoder) DecodeByte() byte + func (this *ExpGolombDecoder) Dispose() + func (this *ExpGolombDecoder) Read(block []byte) (int, error) + func (this *ExpGolombDecoder) Signed() bool + type ExpGolombEncoder struct + func NewExpGolombEncoder(bs kanzi.OutputBitStream, sgn bool) (*ExpGolombEncoder, error) + func (this *ExpGolombEncoder) BitStream() kanzi.OutputBitStream + func (this *ExpGolombEncoder) Dispose() + func (this *ExpGolombEncoder) EncodeByte(val byte) + func (this *ExpGolombEncoder) Signed() bool + func (this *ExpGolombEncoder) Write(block []byte) (int, error) + type FPAQDecoder struct + func NewFPAQDecoder(bs kanzi.InputBitStream) (*FPAQDecoder, error) + func NewFPAQDecoderWithCtx(bs kanzi.InputBitStream, ctx *map[string]interface{}) (*FPAQDecoder, error) + func (this *FPAQDecoder) BitStream() kanzi.InputBitStream + func (this *FPAQDecoder) Dispose() + func (this *FPAQDecoder) Read(block []byte) (int, error) + type FPAQEncoder struct + func NewFPAQEncoder(bs kanzi.OutputBitStream) (*FPAQEncoder, error) + func NewFPAQEncoderWithCtx(bs kanzi.OutputBitStream, ctx *map[string]interface{}) (*FPAQEncoder, error) + func (this *FPAQEncoder) BitStream() kanzi.OutputBitStream + func (this *FPAQEncoder) Dispose() + func (this *FPAQEncoder) Write(block []byte) (int, error) + type FastLogisticAdaptiveProbMap adaptiveProbMapData + func (this *FastLogisticAdaptiveProbMap) Get(bit int, pr int, ctx int) int + type HuffmanDecoder struct + func NewHuffmanDecoder(bs kanzi.InputBitStream, args ...uint) (*HuffmanDecoder, error) + func NewHuffmanDecoderWithCtx(bs kanzi.InputBitStream, ctx *map[string]interface{}) (*HuffmanDecoder, error) + func (this *HuffmanDecoder) BitStream() kanzi.InputBitStream + func (this *HuffmanDecoder) Dispose() + func (this *HuffmanDecoder) Read(block []byte) (int, error) + type HuffmanEncoder struct + func NewHuffmanEncoder(bs kanzi.OutputBitStream, args ...uint) (*HuffmanEncoder, error) + func (this *HuffmanEncoder) BitStream() kanzi.OutputBitStream + func (this *HuffmanEncoder) Dispose() + func (this *HuffmanEncoder) Write(block []byte) (int, error) + type LinearAdaptiveProbMap adaptiveProbMapData + func (this *LinearAdaptiveProbMap) Get(bit int, pr int, ctx int) int + type LogisticAdaptiveProbMap adaptiveProbMapData + func (this *LogisticAdaptiveProbMap) Get(bit int, pr int, ctx int) int + type NullEntropyDecoder struct + func NewNullEntropyDecoder(bs kanzi.InputBitStream) (*NullEntropyDecoder, error) + func (this *NullEntropyDecoder) BitStream() kanzi.InputBitStream + func (this *NullEntropyDecoder) Dispose() + func (this *NullEntropyDecoder) Read(block []byte) (int, error) + type NullEntropyEncoder struct + func NewNullEntropyEncoder(bs kanzi.OutputBitStream) (*NullEntropyEncoder, error) + func (this *NullEntropyEncoder) BitStream() kanzi.OutputBitStream + func (this *NullEntropyEncoder) Dispose() + func (this *NullEntropyEncoder) Write(block []byte) (int, error) + type RangeDecoder struct + func NewRangeDecoder(bs kanzi.InputBitStream, args ...uint) (*RangeDecoder, error) + func (this *RangeDecoder) BitStream() kanzi.InputBitStream + func (this *RangeDecoder) Dispose() + func (this *RangeDecoder) Read(block []byte) (int, error) + type RangeEncoder struct + func NewRangeEncoder(bs kanzi.OutputBitStream, args ...uint) (*RangeEncoder, error) + func (this *RangeEncoder) BitStream() kanzi.OutputBitStream + func (this *RangeEncoder) Dispose() + func (this *RangeEncoder) Write(block []byte) (int, error) + type RiceGolombDecoder struct + func NewRiceGolombDecoder(bs kanzi.InputBitStream, sgn bool, logBase uint) (*RiceGolombDecoder, error) + func (this *RiceGolombDecoder) BitStream() kanzi.InputBitStream + func (this *RiceGolombDecoder) DecodeByte() byte + func (this *RiceGolombDecoder) Dispose() + func (this *RiceGolombDecoder) Read(block []byte) (int, error) + func (this *RiceGolombDecoder) Signed() bool + type RiceGolombEncoder struct + func NewRiceGolombEncoder(bs kanzi.OutputBitStream, sgn bool, logBase uint) (*RiceGolombEncoder, error) + func (this *RiceGolombEncoder) BitStream() kanzi.OutputBitStream + func (this *RiceGolombEncoder) Dispose() + func (this *RiceGolombEncoder) EncodeByte(val byte) + func (this *RiceGolombEncoder) Signed() bool + func (this *RiceGolombEncoder) Write(block []byte) (int, error) + type TPAQMixer struct + type TPAQPredictor struct + func NewTPAQPredictor(ctx *map[string]interface{}) (*TPAQPredictor, error) + func (this *TPAQPredictor) Get() int + func (this *TPAQPredictor) Update(bit byte) Other modules containing this package github.com/flanglet/kanzi-go