MCPcopy Create free account
hub / github.com/DentonW/DevIL / readScanlines

Function readScanlines

DevIL/src-IL/src/il_pic.cpp:245–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243
244
245ILboolean 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
265ILuint readScanline(ILubyte *scan, ILint width, CHANNEL *channel, ILint bytes)

Callers 1

iLoadPicInternalFunction · 0.85

Calls 2

readScanlineFunction · 0.85
ilSetErrorFunction · 0.85

Tested by

no test coverage detected