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

Function iCheckPix

DevIL/src-IL/src/il_pix.cpp:65–75  ·  view source on GitHub ↗

Internal function used to check if the HEADER is a valid Pix header.

Source from the content-addressed store, hash-verified

63
64// Internal function used to check if the HEADER is a valid Pix header.
65ILboolean iCheckPix(PIXHEAD *Header)
66{
67 if (Header->Width == 0 || Header->Height == 0)
68 return IL_FALSE;
69 if (Header->Bpp != 24)
70 return IL_FALSE;
71 //if (Header->OffY != Header->Height)
72 // return IL_FALSE;
73
74 return IL_TRUE;
75}
76
77
78//! Reads a Pix file

Callers 2

iIsValidPixFunction · 0.85
iLoadPixInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected