Lines Matching refs:npixels
189 tmsize_t npixels; in LogL16Decode() local
199 npixels = occ / sp->pixel_size; in LogL16Decode()
204 if(sp->tbuflen < npixels) { in LogL16Decode()
211 _TIFFmemset((void*) tp, 0, npixels*sizeof (tp[0])); in LogL16Decode()
217 for (i = 0; i < npixels && cc > 0; ) { in LogL16Decode()
224 while (rc-- && i < npixels) in LogL16Decode()
228 while (--cc && rc-- && i < npixels) in LogL16Decode()
232 if (i != npixels) { in LogL16Decode()
237 (unsigned __int64) (npixels - i)); in LogL16Decode()
242 (unsigned long long) (npixels - i)); in LogL16Decode()
249 (*sp->tfunc)(sp, op, npixels); in LogL16Decode()
265 tmsize_t npixels; in LogLuvDecode24() local
272 npixels = occ / sp->pixel_size; in LogLuvDecode24()
277 if(sp->tbuflen < npixels) { in LogLuvDecode24()
287 for (i = 0; i < npixels && cc >= 3; i++) { in LogLuvDecode24()
294 if (i != npixels) { in LogLuvDecode24()
299 (unsigned __int64) (npixels - i)); in LogLuvDecode24()
304 (unsigned long long) (npixels - i)); in LogLuvDecode24()
308 (*sp->tfunc)(sp, op, npixels); in LogLuvDecode24()
322 tmsize_t npixels; in LogLuvDecode32() local
333 npixels = occ / sp->pixel_size; in LogLuvDecode32()
338 if(sp->tbuflen < npixels) { in LogLuvDecode32()
345 _TIFFmemset((void*) tp, 0, npixels*sizeof (tp[0])); in LogLuvDecode32()
351 for (i = 0; i < npixels && cc > 0; ) { in LogLuvDecode32()
358 while (rc-- && i < npixels) in LogLuvDecode32()
362 while (--cc && rc-- && i < npixels) in LogLuvDecode32()
366 if (i != npixels) { in LogLuvDecode32()
371 (unsigned __int64) (npixels - i)); in LogLuvDecode32()
376 (unsigned long long) (npixels - i)); in LogLuvDecode32()
383 (*sp->tfunc)(sp, op, npixels); in LogLuvDecode32()
442 tmsize_t npixels; in LogL16Encode() local
452 npixels = cc / sp->pixel_size; in LogL16Encode()
458 if(sp->tbuflen < npixels) { in LogL16Encode()
463 (*sp->tfunc)(sp, bp, npixels); in LogL16Encode()
469 for (i = 0; i < npixels; i += rc) { in LogL16Encode()
479 for (beg = i; beg < npixels; beg += rc) { in LogL16Encode()
482 while (rc < 127+2 && beg+rc < npixels && in LogL16Encode()
539 tmsize_t npixels; in LogLuvEncode24() local
546 npixels = cc / sp->pixel_size; in LogLuvEncode24()
552 if(sp->tbuflen < npixels) { in LogLuvEncode24()
557 (*sp->tfunc)(sp, bp, npixels); in LogLuvEncode24()
562 for (i = npixels; i--; ) { in LogLuvEncode24()
593 tmsize_t npixels; in LogLuvEncode32() local
604 npixels = cc / sp->pixel_size; in LogLuvEncode32()
610 if(sp->tbuflen < npixels) { in LogLuvEncode32()
615 (*sp->tfunc)(sp, bp, npixels); in LogLuvEncode32()
621 for (i = 0; i < npixels; i += rc) { in LogLuvEncode32()
631 for (beg = i; beg < npixels; beg += rc) { in LogLuvEncode32()
634 while (rc < 127+2 && beg+rc < npixels && in LogLuvEncode32()