Lines Matching refs:scanline
1774 // avoid switch per pixel, so use switch per scanline and massive macros
1831 // avoid switch per pixel, so use switch per scanline and massive macros
2956 // in trivial scanline order
3013 // in trivial scanline order
4622 // synthetic filters used for first scanline to avoid needing a dummy row of 0s
4787 // could also overwrite the next scanline. can it overwrite non-empty data
4788 // on the next scanline? yes, consider 1-pixel-wide scanlines with 1-bit-per-pixel.
6473 return stbi__errpuc("bad file","scanline overrun");
6482 if (count>left) return stbi__errpuc("bad file","scanline overrun");
7169 stbi_uc *scanline;
7233 scanline = NULL;
7250 STBI_FREE(scanline);
7255 if (len != width) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("invalid decoded scanline length", "corrupt HDR"); }
7256 if (scanline == NULL) {
7257 scanline = (stbi_uc *) stbi__malloc_mad2(width, 4, 0);
7258 if (!scanline) {
7273 if ((count == 0) || (count > nleft)) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); }
7275 scanline[i++ * 4 + k] = value;
7278 if ((count == 0) || (count > nleft)) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); }
7280 scanline[i++ * 4 + k] = stbi__get8(s);
7285 stbi__hdr_convert(hdr_data+(j*width + i)*req_comp, scanline + i*4, req_comp);
7287 if (scanline)
7288 STBI_FREE(scanline);