encode_brotli_bit_stream_BlockEncoder

encode_brotli_bit_stream_BlockEncoder

Overview

encode_brotli_bit_stream_BlockEncoder is a class in Aspose.Font FOSS for Python.

This class provides 5 methods for working with encode_brotli_bit_stream_BlockEncoder objects in Python programs. Available methods include: BuildAndStoreBlockSwitchEntropyCodes, BuildAndStoreEntropyCodes, StoreSymbol, StoreSymbolWithContext, __init__. All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package. Properties: alphabet_size_, bits_, block_ix_, block_len_, block_lengths_, block_split_code_, and 4 more.

Properties

NameTypeAccessDescription
bits_``ReadGets the bits .
depths_``ReadGets the depths .
block_split_code_``ReadGets the block split code .
alphabet_size_``ReadGets the alphabet size .
num_block_types_``ReadGets the num block types .
block_types_``ReadGets the block types .
block_lengths_``ReadGets the block lengths .
block_ix_``ReadGets the block ix .
block_len_``ReadGets the block len .
entropy_ix_``ReadGets the entropy ix .

Methods

SignatureDescription
__init__(alphabet_size, num_block_types, block_types, block_lengths)Calls init on this encode_brotli_bit_stream_BlockEncoder instance.
BuildAndStoreBlockSwitchEntropyCodes(storage_ix, storage)Builds and stores block-switch entropy codes into the storage at storage_ix
BuildAndStoreEntropyCodes(histograms, storage_ix, storage)Builds and stores entropy codes for given histograms into storage at storage_ix
StoreSymbol(symbol, storage_ix, storage)` writes a single symbol into the Brotli bit stream at the specified storage index, updating internal entropy state
StoreSymbolWithContext(kContextBits, symbol, context, context_map, storage_ix, storage)Stores a symbol using kContextBits, context and context_map into storage at storage_ix

See Also