Home | History | Annotate | Download | only in lodepng

Lines Matching full:codetree

903                                     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*/