mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-20 07:49:56 +02:00
Added HuffmanTreeCode Struct for tree codes.
To represent tree codes (depth and bits array). Change-Id: I87650886384dd10d95b16ab808dfd3bb573172bc
This commit is contained in:
@ -40,9 +40,15 @@ typedef struct {
|
||||
int VP8LCreateCompressedHuffmanTree(const uint8_t* const depth, int len,
|
||||
HuffmanTreeToken* tokens, int max_tokens);
|
||||
|
||||
// Struct to represent the tree codes (depth and bits array).
|
||||
typedef struct {
|
||||
int num_symbols; // Number of symbols.
|
||||
uint8_t* code_lengths; // Code lengths of the symbols.
|
||||
uint16_t* codes; // Symbol Codes.
|
||||
} HuffmanTreeCode;
|
||||
|
||||
// Get the actual bit values for a tree of bit depths.
|
||||
void VP8LConvertBitDepthsToSymbols(const uint8_t* const depth, int len,
|
||||
uint16_t* const bits);
|
||||
void VP8LConvertBitDepthsToSymbols(HuffmanTreeCode* const tree);
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
}
|
||||
|
Reference in New Issue
Block a user