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
| Name | Type | Access | Description |
|---|---|---|---|
bits_ | `` | Read | Gets the bits . |
depths_ | `` | Read | Gets the depths . |
block_split_code_ | `` | Read | Gets the block split code . |
alphabet_size_ | `` | Read | Gets the alphabet size . |
num_block_types_ | `` | Read | Gets the num block types . |
block_types_ | `` | Read | Gets the block types . |
block_lengths_ | `` | Read | Gets the block lengths . |
block_ix_ | `` | Read | Gets the block ix . |
block_len_ | `` | Read | Gets the block len . |
entropy_ix_ | `` | Read | Gets the entropy ix . |
Methods
| Signature | Description |
|---|---|
__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 |