encode_Brotli_bit_stream

encode_Brotli_bit_stream

Przegląd

encode_Brotli_bit_stream jest klasą w Aspose.Font FOSS dla Python.

Ta klasa udostępnia 22 metody do pracy z obiektami encode_Brotli_bit_stream w programach Python. Dostępne metody to: BuildAndStoreBlockSplitCode, BuildAndStoreHuffmanTree, EncodeContextMap, EncodeMlen, IndexOf, JumpToByteBoundary, MoveToFront, MoveToFrontTransform, RunLengthCodeZeros, StoreBlockSwitch, StoreCompressedMetaBlockHeader, StoreHuffmanTree oraz 10 dodatkowych metod. Wszystkie publiczne elementy są dostępne dla dowolnej aplikacji Python po zainstalowaniu pakietu Aspose.Font FOSS dla Python.

Metody

SygnaturaOpis
__init__()Calls init w tej encode_Brotli_bit_stream instancji.
EncodeMlen(length, bits, numbits, nibblesbits)Koduje długość dopasowania do strumienia bitów przy użyciu podanych parametrów bitowych
StoreVarLenUint8(n, storage_ix, storage)Zapisuje 8‑bitową liczbę całkowitą n w pamięci pod indeksem storage_ix przy użyciu kodowania zmiennej długości
StoreCompressedMetaBlockHeader(final_block, length, storage_ix, storage)Zapisuje skompresowany nagłówek meta‑bloku, oznaczający ostatni blok i jego długość
StoreUncompressedMetaBlockHeader(length, storage_ix, storage)Zapisuje niekompresowany nagłówek meta‑bloku o podanej długości
StoreHuffmanTreeOfHuffmanTreeToBitMask(num_codes, code_length_bitdepth, storage_ix, storage)Przechowuje reprezentację Huffman‑tree‑of‑Huffman jako maskę bitową
StoreHuffmanTreeToBitMask(huffman_tree, huffman_tree_extra_bits, code_length_bitdepth, code_length_bitdepth_off, code_length_bitdepth_symbols, storage_ix, storage)Konwertuje drzewo Huffmana i jego dodatkowe bity na maskę bitową i zapisuje ją
StoreSimpleHuffmanTree(depths, depths_off, symbols, num_symbols, max_bits, storage_ix, storage)Zapisuje proste drzewo Huffmana określone przez głębokości i symbole
StoreHuffmanTree(depths, depths_off, num, storage_ix, storage)Przechowuje drzewo Huffmana przy użyciu tablicy głębokości i licznika
BuildAndStoreHuffmanTree(histogram, length, depth, depth_off, bits, bits_off, storage_ix, storage)Tworzy drzewo Huffmana z histogramu i przechowuje je
IndexOf(v, value)Zwraca indeks wartości w liście v, albo -1, jeśli nie zostanie znaleziona
MoveToFront(v, index)Przenosi element o podanym indeksie w liście v na początek
MoveToFrontTransform(v)Stosuje transformację move‑to‑front do listy v
RunLengthCodeZeros(v_in, max_run_length_prefix, v_out, extra_bits)Koduje ciągi zer z v_in do v_out z podanym maksymalnym prefiksem
EncodeContextMap(context_map, num_clusters, storage_ix, storage)Zapisuje mapę kontekstu z informacjami o grupowaniu do magazynu
StoreBlockSwitch(code, block_ix, storage_ix, storage)Rejestruje kod przełączenia bloku w indeksie bloku
BuildAndStoreBlockSplitCode(types, lengths, num_types, code, storage_ix, storage)Tworzy i przechowuje kody podziału bloków z długości typów
StoreTrivialContextMap(num_types, context_bits, storage_ix, storage)Zapisuje prostą mapę kontekstu przy użyciu num_types i bitów kontekstu
JumpToByteBoundary(storage_ix, storage)Przesuwa indeks pamięci do następnej granicy bajtowej
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)Zapisuje meta‑blok Brotli do tablicy przechowywania bitów, obsługując literały, polecenia i nagłówki bloków
StoreMetaBlockTrivial(input, start_pos, length, mask, is_last, commands, n_commands, storage_ix, storage, storage_off)Zapisuje prosty blok meta bez skomplikowanych transformacji
StoreUncompressedMetaBlock(final_block, input, position, mask, _hx_len, storage_ix, storage, storage_off)Zapisuje nieskompresowany blok meta, oznaczając blok końcowy w razie potrzeby

Zobacz także

 Polski