Home | History | Annotate | Download | only in lodepng

Lines Matching refs:treepos

526   unsigned treepos = 0; /*position in the tree (1 of the numcodes columns)*/
552 if(treepos > tree->numcodes - 2) return 55; /*oversubscribed, see comment in lodepng_error_text*/
553 if(tree->tree2d[2 * treepos + bit] == 32767) /*not yet filled in*/
557 tree->tree2d[2 * treepos + bit] = n; /*put the current code in it*/
558 treepos = 0;
566 tree->tree2d[2 * treepos + bit] = nodefilled + tree->numcodes;
567 treepos = nodefilled;
570 else treepos = tree->tree2d[2 * treepos + bit] - tree->numcodes;
905 unsigned treepos = 0, ct;
913 ct = codetree->tree2d[(treepos << 1) + READBIT(*bp, in)];
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*/