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

Function iSaveRawInternal

DevIL/src-IL/src/il_raw.cpp:170–185  ·  view source on GitHub ↗

Internal function used to load the raw data.

Source from the content-addressed store, hash-verified

168
169// Internal function used to load the raw data.
170ILboolean iSaveRawInternal()
171{
172 if (iCurImage == NULL) {
173 ilSetError(IL_ILLEGAL_OPERATION);
174 return IL_FALSE;
175 }
176
177 SaveLittleUInt(iCurImage->Width);
178 SaveLittleUInt(iCurImage->Height);
179 SaveLittleUInt(iCurImage->Depth);
180 iputc(iCurImage->Bpp);
181 iputc(iCurImage->Bpc);
182 iwrite(iCurImage->Data, 1, iCurImage->SizeOfData);
183
184 return IL_TRUE;
185}
186
187
188#endif//IL_NO_RAW

Callers 2

ilSaveRawFFunction · 0.85
ilSaveRawLFunction · 0.85

Calls 2

ilSetErrorFunction · 0.85
SaveLittleUIntFunction · 0.85

Tested by

no test coverage detected