ILboolean ilIsValidJpgL(const ILvoid *Lump, ILuint Size) { iSetInputLump(Lump, Size); return iIsValidJpg(); }
//! Checks if the ILHANDLE contains a valid .jpg file at the current position. ILboolean ilIsValidJpgF(ILHANDLE File) { ILuint FirstPos; ILboolean bRet; iSetInputFile(File); FirstPos = itell(); bRet = iIsValidJpg(); iseek(FirstPos, IL_SEEK_SET); return bRet; }