Lines Matching refs:huffman_codes
451 HuffmanTreeCode* const huffman_codes) { in GetHuffBitLengthsAndCodes() argument
464 HuffmanTreeCode* const codes = &huffman_codes[5 * i]; in GetHuffBitLengthsAndCodes()
486 const int bit_length = huffman_codes[i].num_symbols; in GetHuffBitLengthsAndCodes()
487 huffman_codes[i].codes = codes; in GetHuffBitLengthsAndCodes()
488 huffman_codes[i].code_lengths = lengths; in GetHuffBitLengthsAndCodes()
504 HuffmanTreeCode* const codes = &huffman_codes[5 * i]; in GetHuffBitLengthsAndCodes()
518 memset(huffman_codes, 0, 5 * histogram_image_size * sizeof(*huffman_codes)); in GetHuffBitLengthsAndCodes()
715 const HuffmanTreeCode* const huffman_codes) { in StoreImageToBitMask() argument
724 const HuffmanTreeCode* codes = huffman_codes + 5 * histogram_ix; in StoreImageToBitMask()
733 codes = huffman_codes + 5 * histogram_ix; in StoreImageToBitMask()
784 HuffmanTreeCode huffman_codes[5] = { { 0, NULL, NULL } }; in EncodeImageNoHuffman() local
820 if (!GetHuffBitLengthsAndCodes(histogram_image, huffman_codes)) { in EncodeImageNoHuffman()
830 HuffmanTreeCode* const codes = &huffman_codes[i]; in EncodeImageNoHuffman()
844 HuffmanTreeCode* const codes = &huffman_codes[i]; in EncodeImageNoHuffman()
851 huffman_codes); in EncodeImageNoHuffman()
857 WebPSafeFree(huffman_codes[0].codes); in EncodeImageNoHuffman()
878 HuffmanTreeCode* huffman_codes = NULL; in EncodeImageInternal() local
948 huffman_codes = (HuffmanTreeCode*)WebPSafeCalloc(bit_array_size, in EncodeImageInternal()
949 sizeof(*huffman_codes)); in EncodeImageInternal()
952 if (huffman_codes == NULL || in EncodeImageInternal()
953 !GetHuffBitLengthsAndCodes(histogram_image, huffman_codes)) { in EncodeImageInternal()
1012 HuffmanTreeCode* const codes = &huffman_codes[i]; in EncodeImageInternal()
1023 HuffmanTreeCode* const codes = &huffman_codes[i]; in EncodeImageInternal()
1031 histogram_symbols, huffman_codes); in EncodeImageInternal()
1044 if (huffman_codes != NULL) { in EncodeImageInternal()
1045 WebPSafeFree(huffman_codes->codes); in EncodeImageInternal()
1046 WebPSafeFree(huffman_codes); in EncodeImageInternal()
1047 huffman_codes = NULL; in EncodeImageInternal()
1057 if (huffman_codes != NULL) { in EncodeImageInternal()
1058 WebPSafeFree(huffman_codes->codes); in EncodeImageInternal()
1059 WebPSafeFree(huffman_codes); in EncodeImageInternal()