Internal function to get the header and check it.
| 88 | |
| 89 | // Internal function to get the header and check it. |
| 90 | ILboolean 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. |
no test coverage detected