Searched refs:codetree (Results 1 – 2 of 2) sorted by relevance
/external/zopfli/src/zopflipng/lodepng/ |
D | lodepng_util.cpp | 393 HuffmanTree codetree, codetreeD, codelengthcodetree; member 394 …fmanDecodeSymbol(const unsigned char* in, size_t& bp, const HuffmanTree& codetree, size_t inlength) in huffmanDecodeSymbol() 401 error = codetree.decode(decoded, ct, treepos, readBitFromStream(bp, in)); in huffmanDecodeSymbol() 484 if(btype == 1) { generateFixedTrees(codetree, codetreeD); } in inflateHuffmanBlock() 485 …else if(btype == 2) { getTreeInflateDynamic(codetree, codetreeD, in, bp, inlength); if(error) retu… in inflateHuffmanBlock() 488 unsigned long code = huffmanDecodeSymbol(in, bp, codetree, inlength); if(error) return; in inflateHuffmanBlock()
|
D | lodepng.cpp | 903 const HuffmanTree* codetree, size_t inbitlength) in huffmanDecodeSymbol() argument 913 ct = codetree->tree2d[(treepos << 1) + READBIT(*bp, in)]; in huffmanDecodeSymbol() 915 if(ct < codetree->numcodes) return ct; /*the symbol is decoded, return it*/ in huffmanDecodeSymbol() 916 else treepos = ct - codetree->numcodes; /*symbol not yet decoded, instead move tree position*/ in huffmanDecodeSymbol() 918 …if(treepos >= codetree->numcodes) return (unsigned)(-1); /*error: it appeared outside the codetree… in huffmanDecodeSymbol()
|