Main

Overview

Main là một lớp trong Aspose.Font FOSS cho Python. Dòng thừa kế từ: decode_Decode.

Main.ParseQuality parses quality settings from string s into the quality object.

Khóa học này cung cấp 27 phương pháp để làm việc với các đối tượng chính trong các chương trình Python. Các phương pháp có sẵn bao gồm: BROTLI_FAILURE, BROTLI_LOG, BROTLI_LOG_ARRAY_INDEX, BROTLI_LOG_UCHAR_VECTOR, BROTLI_LOG_UINT, BrotliDecompress, BrotliDecompressStreaming, BrotliDecompressedSize, CopyUncompressedBlockToOutput, DecodeBlockType, DecodeBlockTypeWithContext, DecodeContextMap,Và 15 phương pháp bổ sung. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng Python nào sau khi cài đặt Aspose.Font FOSS cho gói Python.

Methods

SignatureDescription
__init__()Calls Intô Trong ví dụ chính này.
ParseQuality(s, quality)Parse cài đặt chất lượng từ string s vào đối tượng chất liệu
ParseArgv(argc, argv, input_path, output_path, force, quality, decompress)Tạo các biện pháp lệnh (argc, argv) và điền vào input_path, output_ path, sức mạnh, chất lượng, decompress.
main()Nên phục vụ như là điểm nhập chương trình chạy dòng công cụ font
BROTLI_FAILURE()Trở lại một liên tục cho thấy sự thất bại của Brotli decompression
BROTLI_LOG_UINT(x)Đăng ký một toàn x không được ký kết cho Brotli debugging
BROTLI_LOG_ARRAY_INDEX(array_name, idx)Đăng nhập index idx của array_name cho Brotli debugging
BROTLI_LOG(x)Đăng ký một tin nhắn x trong quá trình xử lý Brotli
BROTLI_LOG_UCHAR_VECTOR(v, _hx_len)Đăng ký một vector v của chiều dài _hx_len cho Brotli debugging
DecodeWindowBits(br)Đọc bit cửa sổ từ bit reader br cho Brotli stream
DecodeVarLenUint8(br)Đọc một chiều dài biến uint8 từ bit reader br
JumpToByteBoundary(br)Tiếp theo: Advances br to the next byte limit
DecodeMetaBlockLength(br, meta_block_length, input_end, is_metadata, is_uncompressed)Tắt một chiều dài meta-block từ br, độ dài đặt và lá cờ
ReadSymbol(table, table_off, br)Đọc biểu tượng từ bảng tại tab_off offset bằng cách sử dụng br
ReadHuffmanCodeLengths(code_length_code_lengths, num_symbols, code_lengths, s)Đọc Huffman mã chiều dài cho num_symbol trong code_lengths
ReadHuffmanCode(alphabet_size, table, table_off, opt_table_size, s)Xây dựng một bảng mã Huffman cho alphabet_size bằng cách sử dụng br và s
ReadBlockLength(table, table_off, br)Đọc một chiều dài khối từ bảng tại table_off bằng cách sử dụng br
TranslateShortCodes(code, ringbuffer, index)Chuyển đổi mã ngắn sang vị trí ringbuffer tại chỉ số
InverseMoveToFrontTransform(v, v_len)Đổi MTF trên vector v của chiều dài v_len
HuffmanTreeGroupDecode(group, s)Tải một nhóm cây Huffman bằng cách sử dụng s
DecodeContextMap(context_map_size, num_htrees, context_map, s)Tải ra một bản đồ bối cảnh của kích thước và số lượng cây sử dụng s
DecodeBlockType(max_block_type, trees, tree_type, block_types, ringbuffers, indexes, br)Tùy chọn loại khối bằng cách sử dụng max_block_type và các bảng liên quan
DecodeBlockTypeWithContext(s, br)Tính phân loại khối với bối cảnh bổ sung từ br
CopyUncompressedBlockToOutput(output, pos, s)Sao chép dữ liệu khối không bị nén vào xuất tại vị trí pos
BrotliDecompressedSize(encoded_size, encoded_buffer, encoded_buffer_off, decoded_size)Tính toán kích thước bị trộn từ các thông số buffer mã hóa
BrotliDecompressStreaming(input, output, finish, s)Chạy băng trộn Brotli decompression từ input đến output
BrotliDecompress(input, output)Tắt một buffer Brotli hoàn chỉnh từ nhập đến xuất khẩu

See Also

 Tiếng Việt