• Home
  • Raw
  • Download

Lines Matching refs:huff_tree

459   HuffmanTree* huff_tree = NULL;  in GetHuffBitLengthsAndCodes()  local
498 huff_tree = (HuffmanTree*)WebPSafeMalloc(3ULL * max_num_symbols, in GetHuffBitLengthsAndCodes()
499 sizeof(*huff_tree)); in GetHuffBitLengthsAndCodes()
500 if (buf_rle == NULL || huff_tree == NULL) goto End; in GetHuffBitLengthsAndCodes()
506 VP8LCreateHuffmanTree(histo->literal_, 15, buf_rle, huff_tree, codes + 0); in GetHuffBitLengthsAndCodes()
507 VP8LCreateHuffmanTree(histo->red_, 15, buf_rle, huff_tree, codes + 1); in GetHuffBitLengthsAndCodes()
508 VP8LCreateHuffmanTree(histo->blue_, 15, buf_rle, huff_tree, codes + 2); in GetHuffBitLengthsAndCodes()
509 VP8LCreateHuffmanTree(histo->alpha_, 15, buf_rle, huff_tree, codes + 3); in GetHuffBitLengthsAndCodes()
510 VP8LCreateHuffmanTree(histo->distance_, 15, buf_rle, huff_tree, codes + 4); in GetHuffBitLengthsAndCodes()
514 WebPSafeFree(huff_tree); in GetHuffBitLengthsAndCodes()
586 HuffmanTree* const huff_tree, in StoreFullHuffmanCode() argument
608 VP8LCreateHuffmanTree(histogram, 7, buf_rle, huff_tree, &huffman_code); in StoreFullHuffmanCode()
654 HuffmanTree* const huff_tree, in StoreHuffmanCode() argument
688 StoreFullHuffmanCode(bw, huff_tree, tokens, huffman_code); in StoreHuffmanCode()
788 HuffmanTree* const huff_tree = (HuffmanTree*)WebPSafeMalloc( in EncodeImageNoHuffman() local
789 3ULL * CODE_LENGTH_CODES, sizeof(*huff_tree)); in EncodeImageNoHuffman()
790 if (huff_tree == NULL) { in EncodeImageNoHuffman()
845 StoreHuffmanCode(bw, huff_tree, tokens, codes); in EncodeImageNoHuffman()
855 WebPSafeFree(huff_tree); in EncodeImageNoHuffman()
875 HuffmanTree* const huff_tree = (HuffmanTree*)WebPSafeMalloc( in EncodeImageInternal() local
876 3ULL * CODE_LENGTH_CODES, sizeof(*huff_tree)); in EncodeImageInternal()
907 if (huff_tree == NULL || in EncodeImageInternal()
1024 StoreHuffmanCode(bw, huff_tree, tokens, codes); in EncodeImageInternal()
1054 WebPSafeFree(huff_tree); in EncodeImageInternal()