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

Function GetGroupNum

DevIL/src-IL/src/il_dicom.cpp:295–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293
294
295ILuint GetGroupNum(DICOMHEAD *Header)
296{
297 ILushort GroupNum;
298
299 iread(&GroupNum, 1, 2);
300 // The 0x02 group is always little endian.
301 if (GroupNum == 0x02) {
302 UShort(&GroupNum);
303 return GroupNum;
304 }
305 // Now we have to swizzle it if it is not 0x02.
306 if (Header->BigEndian)
307 BigUShort(&GroupNum);
308 else
309 UShort(&GroupNum);
310
311 return GroupNum;
312}
313
314
315ILuint GetShort(DICOMHEAD *Header, ILushort GroupNum)

Callers 1

iGetDicomHeadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected