Lines Matching defs:count

71                          correct channel count for PNG & BMP
183 // To query the width, height and component count of an image without having to
1669 int res, count;
1673 count = (s->io.read)(s->io_user_data, (char*) buffer + blen, n - blen);
1674 res = (count == (n-blen));
1997 void (*YCbCr_to_RGB_kernel)(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step);
2001 static int stbi__build_huffman(stbi__huffman *h, int *count)
2007 for (j=0; j < count[i]; ++j) {
2998 // so now count down the restart interval
3058 // so now count down the restart interval
3206 if (z->scan_n < 1 || z->scan_n > 4 || z->scan_n > (int) z->s->img_n) return stbi__err("bad SOS component count","Corrupt JPEG");
3273 if (c != 3 && c != 1 && c != 4) return stbi__err("bad component count","Corrupt JPEG");
3658 static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step)
3661 for (i=0; i < count; ++i) {
3684 static void stbi__YCbCr_to_RGB_simd(stbi_uc *out, stbi_uc const *y, stbi_uc const *pcb, stbi_uc const *pcr, int count, int step)
3702 for (; i+7 < count; i += 8) {
3759 for (; i+7 < count; i += 8) {
3795 for (; i < count; ++i) {
6062 // convert to target component count
6089 int count, nleft, len;
6091 count = 0;
6092 while ((nleft = pixelCount - count) > 0) {
6100 count += len;
6113 count += len;
6149 return stbi__errpuc("wrong channel count", "Unsupported number of channels in PSD image");
6221 // The RLE-compressed data is preceded by a 2-byte data count for each row in the data,
6442 stbi_uc count,value[4];
6444 count=stbi__get8(s);
6445 if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pure read count)");
6447 if (count > left)
6448 count = (stbi_uc) left;
6452 for(i=0; i<count; ++i,dest+=4)
6454 left -= count;
6462 int count = stbi__get8(s), i;
6463 if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (mixed read count)");
6465 if (count >= 128) { // Repeated
6468 if (count==128)
6469 count = stbi__get16be(s);
6471 count -= 127;
6472 if (count > left)
6478 for(i=0;i<count;++i, dest += 4)
6481 ++count;
6482 if (count>left) return stbi__errpuc("bad file","scanline overrun");
6484 for(i=0;i<count;++i, dest+=4)
6488 left-=count;
7172 unsigned char count, value;
7268 count = stbi__get8(s);
7269 if (count > 128) {
7272 count -= 128;
7273 if ((count == 0) || (count > nleft)) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); }
7274 for (z = 0; z < count; ++z)
7278 if ((count == 0) || (count > nleft)) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); }
7279 for (z = 0; z < count; ++z)
7794 fix reported channel count for PNG & BMP
7829 fix bug in interlaced PNG with user-specified channel count (stb)