qboolean JPEG_OpenLibrary (void);
void JPEG_CloseLibrary (void);
-qbyte* JPEG_LoadImage (const qbyte *f, int matchwidth, int matchheight);
-qboolean JPEG_SaveImage_preflipped (const char *filename, int width, int height, qbyte *data);
+unsigned char* JPEG_LoadImage_BGRA (const unsigned char *f, int filesize);
+qboolean JPEG_SaveImage_preflipped (const char *filename, int width, int height, unsigned char *data);
#endif