encode_backward_references_ZopfliCostModel

encode_backward_references_ZopfliCostModel

Overview

encode_backward_references_ZopfliCostModel เป็นคลาสใน Aspose.Font FOSS สําหรับ Python.

หมวดนี้ให้ 7 วิธีในการทํางานกับวัตถุ encode_backward_references_ZopfliCostModel ในโปรแกรม Python. วิธีการที่ใช้ได้แก่: GetCommandCost, GetLiteralCosts, GetMinCostCmd, Set, SetFromCommands, SetFromLiteralCosts, __init__. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Python ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Python. คุณสมบัติ: cost_cmd_, cost_dist_, literal_costs_, min_cost_cmd_.

Properties

NameTypeAccessDescription
min_cost_cmd_``Readได้ค่าใช้จ่ายที่น้อยที่สุด cmd .
literal_costs_``Readได้รับค่าใช้จ่ายตามคําแปล.
cost_dist_``Readได้ค่าใช้จ่ายดีสเตอร์.
cost_cmd_``Readได้ค่าใช้จ่ายจาก Cmd.

Methods

SignatureDescription
__init__()Calls init การประกอบการ ในตัวอย่าง encode_backward_references_ZopfliCostModel นี้.
SetFromCommands(num_bytes, position, ringbuffer, ringbuffer_mask, commands, num_commands, last_insert_len)เริ่มต้นแบบ Zopfli ค่าใช้งานโดยการใช้รายชื่อคําสั่งที่ให้บริการ, วงจรพัฟเฟอร์ และข้อมูลตําแหน่ง เพื่อเตรียมมันเพื่อเลือกอ้างอิงกลับที่ดีที่สุด
SetFromLiteralCosts(num_bytes, position, literal_cost, literal_cost_mask)เริ่มต้นแบบโดยใช้ array ค่าธรรมดา
GetCommandCost(dist_code, length_code, insert_length)ส่งค่าใช้จ่ายสําหรับคําสั่งที่ให้ความยาว, ระยะทางและใส่รหัส
GetLiteralCosts(_hx_from, to)ค้นค่าตัวแปลสําหรับอินเด็กซ์จาก hx จากสูงสุดถึง
GetMinCostCmd()ส่งคําสั่งกลับด้วยค่าใช้จ่ายที่เก็บไว้อย่างน้อย
Set(histogram, cost)มอบ histogram และค่าใช้จ่ายที่เกี่ยวข้องกับตัวอย่าง

See Also

 ภาษาไทย