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

Function iLoadPsdInternal

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

Internal function used to load the Psd.

Source from the content-addressed store, hash-verified

183
184// Internal function used to load the Psd.
185ILboolean iLoadPsdInternal()
186{
187 PSDHEAD Header;
188
189 if (iCurImage == NULL) {
190 ilSetError(IL_ILLEGAL_OPERATION);
191 return IL_FALSE;
192 }
193
194 iGetPsdHead(&Header);
195 if (!iCheckPsd(&Header)) {
196 ilSetError(IL_INVALID_FILE_HEADER);
197 return IL_FALSE;
198 }
199
200 if (!ReadPsd(&Header))
201 return IL_FALSE;
202 iCurImage->Origin = IL_ORIGIN_UPPER_LEFT;
203
204 return ilFixImage();
205}
206
207
208ILboolean ReadPsd(PSDHEAD *Head)

Callers 2

ilLoadPsdFFunction · 0.85
ilLoadPsdLFunction · 0.85

Calls 5

ilSetErrorFunction · 0.85
iGetPsdHeadFunction · 0.85
iCheckPsdFunction · 0.85
ReadPsdFunction · 0.85
ilFixImageFunction · 0.85

Tested by

no test coverage detected