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

Function DpxGetImageOrient

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

Source from the content-addressed store, hash-verified

134
135
136ILboolean DpxGetImageOrient(DPX_IMAGE_ORIENT *ImageOrient)
137{
138 ImageOrient->XOffset = GetBigUInt();
139 ImageOrient->YOffset = GetBigUInt();
140 iread(&ImageOrient->XCenter, 4, 1);
141 iread(&ImageOrient->YCenter, 4, 1);
142 ImageOrient->XOrigSize = GetBigUInt();
143 ImageOrient->YOrigSize = GetBigUInt();
144 iread(ImageOrient->FileName, 100, 1);
145 iread(ImageOrient->CreationTime, 24, 1);
146 iread(ImageOrient->InputDev, 32, 1);
147 if (iread(ImageOrient->InputSerial, 32, 1) != 1)
148 return IL_FALSE;
149 ImageOrient->Border[0] = GetBigUShort();
150 ImageOrient->Border[1] = GetBigUShort();
151 ImageOrient->Border[2] = GetBigUShort();
152 ImageOrient->Border[3] = GetBigUShort();
153 ImageOrient->PixelAspect[0] = GetBigUInt();
154 ImageOrient->PixelAspect[1] = GetBigUInt();
155 iseek(28, IL_SEEK_CUR); // Skip reserved bytes.
156
157 return IL_TRUE;
158}
159
160
161// Internal function used to load the DPX.

Callers 1

iLoadDpxInternalFunction · 0.85

Calls 2

GetBigUIntFunction · 0.85
GetBigUShortFunction · 0.85

Tested by

no test coverage detected