Lines Matching defs:out
30 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
160 outputBits (int nBits, Int64 bits, Int64 &c, int &lc, char *&out)
168 *out++ = (c >> (lc -= 8));
719 outputCode (Int64 code, Int64 &c, int &lc, char *&out)
721 outputBits (hufLength (code), hufCode (code), c, lc, out);
727 Int64 &c, int &lc, char *&out)
733 outputCode (sCode, c, lc, out);
734 outputCode (runCode, c, lc, out);
735 outputBits (8, runCount, c, lc, out);
740 outputCode (sCode, c, lc, out);
755 char* out) // o: compressed output buffer
757 char *outStart = out;
758 Int64 c = 0; // bits not yet written to out
779 sendCode (hcode[s], cs, hcode[rlc], c, lc, out);
790 sendCode (hcode[s], cs, hcode[rlc], c, lc, out);
793 *out = (c << (8 - lc)) & 0xff;
795 return (out - outStart) * 8 + lc;
816 #define getCode(po, rlc, c, lc, in, out, oe) \
827 if (out + cs > oe) \
830 unsigned short s = out[-1]; \
833 *out++ = s; \
835 else if (out < oe) \
837 *out++ = po; \
858 unsigned short* out) // o: uncompressed output buffer
862 unsigned short * outb = out;
863 unsigned short * oe = out + no;
889 getCode (pl.lit, rlc, c, lc, in, out, oe);
919 getCode (pl.p[j], rlc, c, lc, in, out, oe);
946 getCode (pl.lit, rlc, c, lc, in, out, oe);
954 if (out - outb != no)