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

Function iIsValidJpeg

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

Internal function to get the header and check it.

Source from the content-addressed store, hash-verified

88
89// Internal function to get the header and check it.
90ILboolean iIsValidJpeg()
91{
92 ILubyte Head[2];
93
94 iGetJpgHead(Head);
95 iseek(-2, IL_SEEK_CUR); // Go ahead and restore to previous state
96
97 return iCheckJpg(Head);
98}
99
100
101//! Checks if the file specified in FileName is a valid .jpg file.

Callers 2

ilIsValidJpegFFunction · 0.85
ilIsValidJpegLFunction · 0.85

Calls 2

iGetJpgHeadFunction · 0.85
iCheckJpgFunction · 0.85

Tested by

no test coverage detected