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

Function iCheckJpg

DevIL/src-IL/src/il_jpeg.cpp:81–86  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

79
80// Internal function used to check if the HEADER is a valid .Jpg header.
81ILboolean iCheckJpg(ILubyte Header[2])
82{
83 if (Header[0] != 0xFF || Header[1] != 0xD8)
84 return IL_FALSE;
85 return IL_TRUE;
86}
87
88
89// Internal function to get the header and check it.

Callers 1

iIsValidJpegFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected