Lines Matching defs:cc
65 PackBitsEncode(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s)
80 while (cc > 0) {
84 b = *bp++, cc--, n = 1;
85 for (; cc > 0 && b == *bp; cc--, bp++)
194 PackBitsEncodeChunk(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s)
198 while (cc > 0) {
201 if( cc < chunk )
202 chunk = cc;
207 cc -= chunk;
217 tmsize_t cc;
223 cc = tif->tif_rawcc;
224 while (cc > 0 && occ > 0) {
225 n = (long) *bp++, cc--;
244 b = *bp++, cc--; /* TODO: may be reading past input buffer here when input data is corrupt or ends prematurely */
257 bp += n; cc -= n;
261 tif->tif_rawcc = cc;