Étiquette : Block_splitter
Vue de l’ensemble
’encode_Block_splitter’ est une classe dans Aspose.Font FOSS pour Python.
Cette classe fournit 15 méthodes pour travailler avec des objets encode_Block_splitter dans les programmes Python. Les méthodologies disponibles comprennent: ‘BitCost’, ‘BuildBlocHistograms’, BuiltB BlockSplit', ‘ClusterBlokks’, 'CopyCommandsToByteArray', ’CopiLiteralsToTobytArrey', ‚FindBlocks‘, 'InitialEntropyCodes, MyRand , ‘RantomSample` et 3 méthods supplémentaires. Tous les membres publics sont accessibles à toute application Pythone après l’installation de la FOSS-Python pour le package.
méthodes
| Signature | Description |
|---|---|
__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 |
Voir aussi
- Aspose.Font — référence API d’entreprise