Searched defs:codetree (Results 1 - 2 of 2) sorted by relevance

/external/zopfli/src/zopflipng/lodepng/
H A Dlodepng_util.cpp350 if(treepos >= numcodes) return 11; //error: you appeared outside the codetree
393 HuffmanTree codetree, codetreeD, codelengthcodetree; member in struct:lodepng::ExtractZlib
394 unsigned long huffmanDecodeSymbol(const unsigned char* in, size_t& bp, const HuffmanTree& codetree, size_t inlength) argument
401 error = codetree.decode(decoded, ct, treepos, readBitFromStream(bp, in));
484 if(btype == 1) { generateFixedTrees(codetree, codetreeD); }
485 else if(btype == 2) { getTreeInflateDynamic(codetree, codetreeD, in, bp, inlength); if(error) return; }
488 unsigned long code = huffmanDecodeSymbol(in, bp, codetree, inlength); if(error) return;
H A Dlodepng.cpp903 const HuffmanTree* codetree, size_t inbitlength)
913 ct = codetree->tree2d[(treepos << 1) + READBIT(*bp, in)];
915 if(ct < codetree->numcodes) return ct; /*the symbol is decoded, return it*/
916 else treepos = ct - codetree->numcodes; /*symbol not yet decoded, instead move tree position*/
918 if(treepos >= codetree->numcodes) return (unsigned)(-1); /*error: it appeared outside the codetree*/
902 huffmanDecodeSymbol(const unsigned char* in, size_t* bp, const HuffmanTree* codetree, size_t inbitlength) argument

Completed in 98 milliseconds