qboolean JPEG_OpenLibrary (void);
void JPEG_CloseLibrary (void);
-unsigned char* JPEG_LoadImage_BGRA (const unsigned char *f, int filesize);
+unsigned char* JPEG_LoadImage_BGRA (const unsigned char *f, int filesize, int *miplevel);
qboolean JPEG_SaveImage_preflipped (const char *filename, int width, int height, unsigned char *data);
/*! \returns 0 if failed, or the size actually used.