| 243 | |
| 244 | |
| 245 | ILboolean readScanlines(ILuint *image, ILint width, ILint height, CHANNEL *channel, ILuint alpha) |
| 246 | { |
| 247 | ILint i; |
| 248 | ILuint *scan; |
| 249 | |
| 250 | (void)alpha; |
| 251 | |
| 252 | for (i = height - 1; i >= 0; i--) { |
| 253 | scan = image + i * width; |
| 254 | |
| 255 | if (!readScanline((ILubyte *)scan, width, channel, alpha ? 4 : 3)) { |
| 256 | ilSetError(IL_ILLEGAL_FILE_VALUE); |
| 257 | return IL_FALSE; |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | return IL_TRUE; |
| 262 | } |
| 263 | |
| 264 | |
| 265 | ILuint readScanline(ILubyte *scan, ILint width, CHANNEL *channel, ILint bytes) |
no test coverage detected