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

Function DpxGetImageInfo

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

Source from the content-addressed store, hash-verified

113
114
115ILboolean DpxGetImageInfo(DPX_IMAGE_INFO *ImageInfo)
116{
117 ILuint i;
118
119 //if (iread(ImageInfo, sizeof(DPX_IMAGE_INFO), 1) != 1)
120 // return IL_FALSE;
121 ImageInfo->Orientation = GetBigUShort();
122 ImageInfo->NumElements = GetBigUShort();
123 ImageInfo->Width = GetBigUInt();
124 ImageInfo->Height = GetBigUInt();
125
126 for (i = 0; i < 8; i++) {
127 GetImageElement(&ImageInfo->ImageElement[i]);
128 }
129
130 iseek(52, IL_SEEK_CUR); // Skip padding bytes.
131
132 return IL_TRUE;
133}
134
135
136ILboolean DpxGetImageOrient(DPX_IMAGE_ORIENT *ImageOrient)

Callers 1

iLoadDpxInternalFunction · 0.85

Calls 3

GetBigUShortFunction · 0.85
GetBigUIntFunction · 0.85
GetImageElementFunction · 0.85

Tested by

no test coverage detected