Internal function used to load the Psd.
| 183 | |
| 184 | // Internal function used to load the Psd. |
| 185 | ILboolean 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 | |
| 208 | ILboolean ReadPsd(PSDHEAD *Head) |
no test coverage detected