Home | History | Annotate | Download | only in utils

Lines Matching full:codes

178     // Get Huffman codes from the code lengths.
179 int* const codes =
180 (int*)WebPSafeMalloc((uint64_t)code_lengths_size, sizeof(*codes));
181 if (codes == NULL) goto End;
183 if (!HuffmanCodeLengthsToCodes(code_lengths, code_lengths_size, codes)) {
190 if (!TreeAddSymbol(tree, symbol, codes[symbol], code_lengths[symbol])) {
197 free(codes);
206 const int* const codes,
214 assert(codes != NULL);
222 if (codes[i] != NON_EXISTENT_SYMBOL) {
226 if (!TreeAddSymbol(tree, symbols[i], codes[i], code_lengths[i])) {