encode_backward_references_ZopfliCostModel

encode_backward_references_ZopfliCostModel

Vue de l’ensemble

encode_backward_references_ZopfliCostModel est une classe dans Aspose.Font FOSS pour Python.

Cette classe fournit 7 méthodes pour travailler avec encode_backward_references_ZopfliCostObjets dans les programmes Python. Les méthodologies disponibles comprennent: GetCommandCast, getLiteralCos , Set,, ‘SetFromCommands ', 'SetFremLitteral Cos' , '__init__. Tous les membres publics sont accessibles à n’importe quelle application Pythone après l’installation de l’Aspose.Font FOSS pour le package Pyathon. Propriétés : cost_cmd_ ; coost-dist_', literale_cos_setmin_coust_d` .

Propriétés

NameTypeAccessDescription
min_cost_cmd_``ReadGets the min cost cmd .
literal_costs_``ReadGets the literal costs .
cost_dist_``ReadGets the cost dist .
cost_cmd_``ReadGets the cost cmd .

méthodes

SignatureDescription
__init__()Calls init on this encode_backward_references_ZopfliCostModel instance.
SetFromCommands(num_bytes, position, ringbuffer, ringbuffer_mask, commands, num_commands, last_insert_len)Initializes the Zopfli cost model using the provided command list, ring buffer, and position information, preparing it for optimal backward‑reference selection
SetFromLiteralCosts(num_bytes, position, literal_cost, literal_cost_mask)Initializes the model using a literal cost array
GetCommandCost(dist_code, length_code, insert_length)Returns the cost for a command given distance, length and insert codes
GetLiteralCosts(_hx_from, to)Retrieves literal costs for indices from _hx_from up to to
GetMinCostCmd()Returns the command with the minimal stored cost
Set(histogram, cost)Assigns a histogram and its associated cost to the model

Voir aussi

  • Aspose.Font — référence API d’entreprise
 Français