encode_metablock_ContextBlockSplitter
Overview
encode_metablock_ContextBlockSplitter is a class in Aspose.Font FOSS for Python.
This class provides 3 methods for working with encode_metablock_ContextBlockSplitter objects in Python programs.
Available methods include: AddSymbol, FinishBlock, __init__.
All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Properties: HistogramTypeInt, alphabet_size_, block_size_, curr_histogram_ix_, histograms_, last_entropy_, and 9 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
last_histogram_ix_ | `` | Read | Gets the last histogram ix . |
HistogramTypeInt | `` | Read | Gets the histogram type int. |
alphabet_size_ | `` | Read | Gets the alphabet size . |
num_contexts_ | `` | Read | Gets the num contexts . |
max_block_types_ | `` | Read | Gets the max block types . |
min_block_size_ | `` | Read | Gets the min block size . |
split_threshold_ | `` | Read | Gets the split threshold . |
num_blocks_ | `` | Read | Gets the num blocks . |
split_ | `` | Read | Gets the split . |
histograms_ | `` | Read | Gets the histograms . |
target_block_size_ | `` | Read | Gets the target block size . |
block_size_ | `` | Read | Gets the block size . |
curr_histogram_ix_ | `` | Read | Gets the curr histogram ix . |
last_entropy_ | `` | Read | Gets the last entropy . |
merge_last_count_ | `` | Read | Gets the merge last count . |
Methods
| Signature | Description |
|---|---|
__init__(HistogramTypeInt, alphabet_size, num_contexts, min_block_size, split_threshold, num_symbols, split, histograms) | Calls init on this encode_metablock_ContextBlockSplitter instance. |
AddSymbol(symbol, context) | Adds a symbol to the current block using the given context |
FinishBlock(is_final) | Calls FinishBlock on this encode_metablock_ContextBlockSplitter instance. |