• Home
  • Raw
  • Download

Lines Matching refs:huff_tree

481   HuffmanTree* huff_tree = NULL;  in GetHuffBitLengthsAndCodes()  local
520 huff_tree = (HuffmanTree*)WebPSafeMalloc(3ULL * max_num_symbols, in GetHuffBitLengthsAndCodes()
521 sizeof(*huff_tree)); in GetHuffBitLengthsAndCodes()
522 if (buf_rle == NULL || huff_tree == NULL) goto End; in GetHuffBitLengthsAndCodes()
528 VP8LCreateHuffmanTree(histo->literal_, 15, buf_rle, huff_tree, codes + 0); in GetHuffBitLengthsAndCodes()
529 VP8LCreateHuffmanTree(histo->red_, 15, buf_rle, huff_tree, codes + 1); in GetHuffBitLengthsAndCodes()
530 VP8LCreateHuffmanTree(histo->blue_, 15, buf_rle, huff_tree, codes + 2); in GetHuffBitLengthsAndCodes()
531 VP8LCreateHuffmanTree(histo->alpha_, 15, buf_rle, huff_tree, codes + 3); in GetHuffBitLengthsAndCodes()
532 VP8LCreateHuffmanTree(histo->distance_, 15, buf_rle, huff_tree, codes + 4); in GetHuffBitLengthsAndCodes()
536 WebPSafeFree(huff_tree); in GetHuffBitLengthsAndCodes()
608 HuffmanTree* const huff_tree, in StoreFullHuffmanCode() argument
630 VP8LCreateHuffmanTree(histogram, 7, buf_rle, huff_tree, &huffman_code); in StoreFullHuffmanCode()
676 HuffmanTree* const huff_tree, in StoreHuffmanCode() argument
710 StoreFullHuffmanCode(bw, huff_tree, tokens, huffman_code); in StoreHuffmanCode()
807 HuffmanTree* const huff_tree = (HuffmanTree*)WebPSafeMalloc( in EncodeImageNoHuffman() local
808 3ULL * CODE_LENGTH_CODES, sizeof(*huff_tree)); in EncodeImageNoHuffman()
809 if (huff_tree == NULL) { in EncodeImageNoHuffman()
862 StoreHuffmanCode(bw, huff_tree, tokens, codes); in EncodeImageNoHuffman()
872 WebPSafeFree(huff_tree); in EncodeImageNoHuffman()
892 HuffmanTree* const huff_tree = (HuffmanTree*)WebPSafeMalloc( in EncodeImageInternal() local
893 3ULL * CODE_LENGTH_CODES, sizeof(*huff_tree)); in EncodeImageInternal()
912 if (huff_tree == NULL || histogram_symbols == NULL || in EncodeImageInternal()
1034 StoreHuffmanCode(bw, huff_tree, tokens, codes); in EncodeImageInternal()
1066 WebPSafeFree(huff_tree); in EncodeImageInternal()