Lines Matching refs:npixels
191 tmsize_t npixels; in LogL16Decode() local
201 npixels = occ / sp->pixel_size; in LogL16Decode()
206 if(sp->tbuflen < npixels) { in LogL16Decode()
213 _TIFFmemset((void*) tp, 0, npixels*sizeof (tp[0])); in LogL16Decode()
219 for (i = 0; i < npixels && cc > 0; ) { in LogL16Decode()
226 while (rc-- && i < npixels) in LogL16Decode()
230 while (--cc && rc-- && i < npixels) in LogL16Decode()
234 if (i != npixels) { in LogL16Decode()
239 (unsigned __int64) (npixels - i)); in LogL16Decode()
244 (unsigned long long) (npixels - i)); in LogL16Decode()
251 (*sp->tfunc)(sp, op, npixels); in LogL16Decode()
267 tmsize_t npixels; in LogLuvDecode24() local
274 npixels = occ / sp->pixel_size; in LogLuvDecode24()
279 if(sp->tbuflen < npixels) { in LogLuvDecode24()
289 for (i = 0; i < npixels && cc >= 3; i++) { in LogLuvDecode24()
296 if (i != npixels) { in LogLuvDecode24()
301 (unsigned __int64) (npixels - i)); in LogLuvDecode24()
306 (unsigned long long) (npixels - i)); in LogLuvDecode24()
310 (*sp->tfunc)(sp, op, npixels); in LogLuvDecode24()
324 tmsize_t npixels; in LogLuvDecode32() local
335 npixels = occ / sp->pixel_size; in LogLuvDecode32()
340 if(sp->tbuflen < npixels) { in LogLuvDecode32()
347 _TIFFmemset((void*) tp, 0, npixels*sizeof (tp[0])); in LogLuvDecode32()
353 for (i = 0; i < npixels && cc > 0; ) { in LogLuvDecode32()
360 while (rc-- && i < npixels) in LogLuvDecode32()
364 while (--cc && rc-- && i < npixels) in LogLuvDecode32()
368 if (i != npixels) { in LogLuvDecode32()
373 (unsigned __int64) (npixels - i)); in LogLuvDecode32()
378 (unsigned long long) (npixels - i)); in LogLuvDecode32()
385 (*sp->tfunc)(sp, op, npixels); in LogLuvDecode32()
444 tmsize_t npixels; in LogL16Encode() local
454 npixels = cc / sp->pixel_size; in LogL16Encode()
460 if(sp->tbuflen < npixels) { in LogL16Encode()
465 (*sp->tfunc)(sp, bp, npixels); in LogL16Encode()
471 for (i = 0; i < npixels; i += rc) { in LogL16Encode()
481 for (beg = i; beg < npixels; beg += rc) { in LogL16Encode()
484 while (rc < 127+2 && beg+rc < npixels && in LogL16Encode()
540 tmsize_t npixels; in LogLuvEncode24() local
547 npixels = cc / sp->pixel_size; in LogLuvEncode24()
553 if(sp->tbuflen < npixels) { in LogLuvEncode24()
558 (*sp->tfunc)(sp, bp, npixels); in LogLuvEncode24()
563 for (i = npixels; i--; ) { in LogLuvEncode24()
594 tmsize_t npixels; in LogLuvEncode32() local
605 npixels = cc / sp->pixel_size; in LogLuvEncode32()
611 if(sp->tbuflen < npixels) { in LogLuvEncode32()
616 (*sp->tfunc)(sp, bp, npixels); in LogLuvEncode32()
622 for (i = 0; i < npixels; i += rc) { in LogLuvEncode32()
632 for (beg = i; beg < npixels; beg += rc) { in LogLuvEncode32()
635 while (rc < 127+2 && beg+rc < npixels && in LogLuvEncode32()