encode_Backward_references
encode_Backward_references
Overview
encode_Backward_references adalah kelas di Aspose.Font FOSS untuk Python.
Kelas ini menyediakan 9 metode untuk bekerja dengan objek encode_Backward_references dalam program Python. Metode yang tersedia meliputi: ComputeDistanceCode, ComputeMinimumCopyLength, CreateBackwardReferences, CreateBackwardReferences_HashLongestMatch, CreateBackwardReferences_HashLongestMatchQuickly, SetDistanceCache, UpdateZopfliNode, ZopfliIterate, __init__. Semua anggota publik dapat diakses oleh aplikasi Python apa pun setelah menginstal paket FOSS for Python.
Methods
| Signature | Description |
|---|---|
__init__() | Calls init (dalam bahasa Inggris) pada contoh encode_Backward_references ini. |
SetDistanceCache(distance, distance_code, max_distance, dist_cache, result_dist_cache, result_dist_cache_off) | Menyimpan jarak dan nilai kode ke dalam array cache untuk digunakan kembali nanti |
ComputeDistanceCode(distance, max_distance, quality, dist_cache) | Mengembalikan jarak yang dikodekan dan memperbarui cache jarak |
UpdateZopfliNode(nodes, nodes_off, pos, start_pos, _hx_len, len_code, dist, dist_code, max_dist, dist_cache, cost) | Mengubah node Zopfli dengan panjang, jarak dan data biaya |
ComputeMinimumCopyLength(queue, nodes, model, pos, min_cost_cmd) | Menentukan panjang salinan terkecil memenuhi kendala biaya |
ZopfliIterate(num_bytes, position, ringbuffer, ringbuffer_mask, max_backward_limit, model, num_matches, matches, dist_cache, last_insert_len, commands, commands_off, num_commands, num_literals) | Menjalankan iterasi kompresi Zopfli atas data input |
CreateBackwardReferences_HashLongestMatch(num_bytes, position, ringbuffer, ringbuffer_mask, max_backward_limit, quality, hasher, dist_cache, last_insert_len, commands, commands_off, num_commands, num_literals) | Menghasilkan referensi ke belakang menggunakan algoritma hash paling lama yang cocok. |
CreateBackwardReferences_HashLongestMatchQuickly(num_bytes, position, ringbuffer, ringbuffer_mask, max_backward_limit, quality, hasher, dist_cache, last_insert_len, commands, commands_off, num_commands, num_literals) | Membuat referensi ke belakang dengan hash cepat heuristik paling lama-cocok |
CreateBackwardReferences(num_bytes, position, ringbuffer, ringbuffer_mask, literal_cost, literal_cost_mask, max_backward_limit, quality, hashers, hash_type, dist_cache, last_insert_len, commands, commands_off, num_commands, num_literals) | Menghasilkan perintah referensi mundur untuk kompresi Brotli berdasarkan data buffer ring. |