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

Function DpxGetFileInfo

DevIL/src-IL/src/il_dpx.cpp:66–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65
66ILboolean DpxGetFileInfo(DPX_FILE_INFO *FileInfo)
67{
68 //if (iread(FileInfo, 768, 1) != 1)
69 // return IL_FALSE;
70
71 FileInfo->MagicNum = GetBigUInt();
72 FileInfo->Offset = GetBigUInt();
73 iread(FileInfo->Vers, 8, 1);
74 FileInfo->FileSize = GetBigUInt();
75 FileInfo->DittoKey = GetBigUInt();
76 FileInfo->GenHdrSize = GetBigUInt();
77 FileInfo->IndHdrSize = GetBigUInt();
78 FileInfo->UserDataSize = GetBigUInt();
79 iread(FileInfo->FileName, 100, 1);
80 iread(FileInfo->CreateTime, 24, 1);
81 iread(FileInfo->Creator, 100, 1);
82 iread(FileInfo->Project, 200, 1);
83 if (iread(FileInfo->Copyright, 200, 1) != 1)
84 return IL_FALSE;
85 FileInfo->Key = GetBigUInt();
86 iseek(104, IL_SEEK_CUR); // Skip reserved section.
87
88 return IL_TRUE;
89}
90
91
92ILboolean GetImageElement(DPX_IMAGE_ELEMENT *ImageElement)

Callers 1

iLoadDpxInternalFunction · 0.85

Calls 1

GetBigUIntFunction · 0.85

Tested by

no test coverage detected