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

Function channelReadRaw

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

Source from the content-addressed store, hash-verified

312
313
314ILboolean channelReadRaw(ILubyte *scan, ILint width, ILint noCol, ILint *off, ILint bytes)
315{
316 ILint i, j;
317
318 for (i = 0; i < width; i++) {
319 if (ieof())
320 return IL_FALSE;
321 for (j = 0; j < noCol; j++)
322 if (iread(&scan[off[j]], 1, 1) != 1)
323 return IL_FALSE;
324 scan += bytes;
325 }
326 return IL_TRUE;
327}
328
329
330ILboolean channelReadPure(ILubyte *scan, ILint width, ILint noCol, ILint *off, ILint bytes)

Callers 1

readScanlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected