encode_Brotli_bit_stream

encode_Brotli_bit_stream

ภาพรวม

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

หมวดนี้ให้ 22 วิธีในการทํางานกับวัตถุ encode_Brotli_bit_stream ในโปรแกรม Python. วิธีการที่ใช้ได้แก่: BuildAndStoreBlockSplitCode, BuildAndStoreHuffmanTree, EncodeContextMap, EncodeMlen, IndexOf, JumpToByteBoundary, MoveToFront, MoveToFrontTransform, RunLengthCodeZeros, StoreBlockSwitch, StoreCompressedMetaBlockHeader, StoreHuffmanTree,และ 10 วิธีเพิ่มเติม. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Python ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Python.

วิธีการ

Signatureคําอธิบาย
__init__()Calls init การประกอบการ ในตัวอย่าง encode_Brotli_bit_stream นี้.
EncodeMlen(length, bits, numbits, nibblesbits)Encodes ความยาวที่ตรงกันในบิตสตรีม โดยใช้ปารามีเตอร์บิทที่ได้รับการจัดหา
StoreVarLenUint8(n, storage_ix, storage)เขียนตัวเลขเต็ม 8 บิต n ไปยังการเก็บในอิงเด็กซ์ storage_ix โดยใช้รหัสความยาวของแปร
StoreCompressedMetaBlockHeader(final_block, length, storage_ix, storage)เขียนหัวข้อเมตาบล็อกที่สกัด โดยการตราหมายยาวและบลอคสุดท้าย
StoreUncompressedMetaBlockHeader(length, storage_ix, storage)เขียนหัวข้อเมตาบล็อกที่ไม่ถูกกดความยาวตามกําหนด
StoreHuffmanTreeOfHuffmanTreeToBitMask(num_codes, code_length_bitdepth, storage_ix, storage)เก็บตัวแทน Huffman-tree-of-Huffmann เป็นหน้ากากบิต
StoreHuffmanTreeToBitMask(huffman_tree, huffman_tree_extra_bits, code_length_bitdepth, code_length_bitdepth_off, code_length_bitdepth_symbols, storage_ix, storage)เปลี่ยนต้น Huffman และบิทเพิ่มเป็นหน้ากากเบิดและเขียนมัน
StoreSimpleHuffmanTree(depths, depths_off, symbols, num_symbols, max_bits, storage_ix, storage)เขียนต้นไม้ฮัฟแมนง่ายๆ ที่กําหนดโดยความลึกและสัญลักษณ์
StoreHuffmanTree(depths, depths_off, num, storage_ix, storage)เก็บต้น Huffman โดยใช้เรียงความลึกและนับ
BuildAndStoreHuffmanTree(histogram, length, depth, depth_off, bits, bits_off, storage_ix, storage)สร้างต้นฮัฟแมนจากไฮสโตแกรมและเก็บมันไว้
IndexOf(v, value)การคืนตัวอัตราค่าในรายการ v, หรือ -1 หากไม่พบ
MoveToFront(v, index)ย้ายตัวในอัตราจารย์ของรายการ v ไปด้านหน้า
MoveToFrontTransform(v)ใช้การแปลงย้ายไปหน้าในรายชื่อ v
RunLengthCodeZeros(v_in, max_run_length_prefix, v_out, extra_bits)รหัสการใช้งานของศูนย์จาก v_in เป็น v _out ด้วยข้อถัดไป max ที่ได้รับ
EncodeContextMap(context_map, num_clusters, storage_ix, storage)เขียนแผนที่แวดล้อมที่มีข้อมูลคลาสเตอร์ในการเก็บรักษา
StoreBlockSwitch(code, block_ix, storage_ix, storage)จดรหัสสวิตช์บล็อกที่อัตราฐานบลอค
BuildAndStoreBlockSplitCode(types, lengths, num_types, code, storage_ix, storage)สร้างและเก็บบล็อกสปิลท์โค้ดจากความยาวของชนิด
StoreTrivialContextMap(num_types, context_bits, storage_ix, storage)เขียนแผนที่เนื้อหาง่าย ๆ โดยใช้ num_types และบิตเน้นเหตุ
JumpToByteBoundary(storage_ix, storage)การนําอัตราการเก็บข้อมูลไปยังขอบเขตไบต์ต่อไป
StoreMetaBlock(input, start_pos, length, mask, prev_byte, prev_byte2, is_last, num_direct_distance_codes, distance_postfix_bits, literal_context_mode, commands, n_commands, mb, storage_ix, storage)เขียนบล็อกเมตาของ Brotli เป็นอาร์เรย์เก็บข้อมูลเบท, การจัดการตัวแปล, คําสั่งและหัวเขตบlock
StoreMetaBlockTrivial(input, start_pos, length, mask, is_last, commands, n_commands, storage_ix, storage, storage_off)เขียนบล็อกเมต้าง่าย ๆ โดยไม่มีการแปลงที่ซับซ้อน
StoreUncompressedMetaBlock(final_block, input, position, mask, _hx_len, storage_ix, storage, storage_off)เขียนบล็อกเมต้าที่ไม่ถูกกด, การหมายยอดสุดท้ายถ้าจําเป็น

ดูเช่นกัน

 ภาษาไทย