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

Function ilLoadJpeg

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

Reads a jpeg file

Source from the content-addressed store, hash-verified

167
168//! Reads a jpeg file
169ILboolean ilLoadJpeg(ILconst_string FileName)
170{
171 ILHANDLE JpegFile;
172 ILboolean bJpeg = IL_FALSE;
173
174 JpegFile = iopenr(FileName);
175 if (JpegFile == NULL) {
176 ilSetError(IL_COULD_NOT_OPEN_FILE);
177 return bJpeg;
178 }
179
180 bJpeg = ilLoadJpegF(JpegFile);
181 icloser(JpegFile);
182
183 return bJpeg;
184}
185
186
187//! Reads an already-opened jpeg file

Callers 4

ILAPIENTRY ilLoadFunction · 0.85
ILAPIENTRY ilLoadImageFunction · 0.85
mainFunction · 0.85
NewTestFunction · 0.85

Calls 4

ilSetErrorFunction · 0.85
ilLoadJpegFFunction · 0.85
iFileExistsFunction · 0.85
iLoadJpegInternalFunction · 0.85

Tested by 2

mainFunction · 0.68
NewTestFunction · 0.68