encode_Block_splitter

encode_Block_splitter

Overview

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

This class provides 15 methods for working with encode_Block_splitter objects in Python programs. Available methods include: BitCost, BuildBlockHistograms, BuildBlockSplit, ClusterBlocks, CopyCommandsToByteArray, CopyLiteralsToByteArray, FindBlocks, InitialEntropyCodes, MyRand, RandomSample, RefineEntropyCodes, RemapBlockIds, and 3 additional methods. All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.

Methods

SignatureDescription
__init__()Calls init on this encode_Block_splitter instance.
CopyLiteralsToByteArray(cmds, num_commands, data, data_off, literals)Copies literal values into a byte array at specified offset
CopyCommandsToByteArray(cmds, num_commands, insert_and_copy_codes, distance_prefixes)Writes command codes and associated data into a byte array
MyRand(seed)Generates a pseudo‑random number based on the provided seed
InitialEntropyCodes(HistogramTypeInt, data, length, literals_per_histogram, max_histograms, stride, vec)Creates initial entropy coding tables from histogram data
RandomSample(seed, data, length, stride, sample)Extracts a random sample from data using stride and seed
RefineEntropyCodes(HistogramTypeInt, data, length, stride, vec)Updates entropy codes based on refined histogram information
BitCost(count)Returns the estimated bit cost for a given count
FindBlocks(kSize, data, length, block_switch_bitcost, vec, block_id, block_id_off)Identifies block boundaries in data using a size parameter and cost model
RemapBlockIds(block_ids, length)Reassigns block IDs to a compact range for the given length
BuildBlockHistograms(HistogramTypeInt, data, length, block_ids, block_ids_off, histograms)Builds histograms for each block from the input data
ClusterBlocks(HistogramTypeInt, data, length, block_ids)Groups blocks into clusters based on similarity of their data
BuildBlockSplit(block_ids, split)Generates a split representation from block IDs
SplitByteVector(HistogramTypeInt, data, literals_per_histogram, max_histograms, sampling_stride_length, block_switch_cost, split)Partitions a byte vector into histograms respecting max count and cost
SplitBlock(cmds, num_commands, data, data_off, literal_split, insert_and_copy_split, dist_split)Divides command and data streams into literal, insert/copy, and distance splits

See Also