X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=jpeg.h;h=f0f27c677ae0f82b58b360e80aa13a967fc8de9f;hb=1d8da66c6d6e2f48017b9020125538d3bfa74814;hp=a657e7c394808d4f9e3cef56e1e10297ca3bb059;hpb=ea3f4513f96a21ae1bcbaae4a4997968ace1ab95;p=xonotic%2Fdarkplaces.git diff --git a/jpeg.h b/jpeg.h index a657e7c3..f0f27c67 100644 --- a/jpeg.h +++ b/jpeg.h @@ -27,8 +27,10 @@ qboolean JPEG_OpenLibrary (void); void JPEG_CloseLibrary (void); -unsigned char* JPEG_LoadImage (const unsigned char *f, int filesize, int matchwidth, int matchheight); +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); +size_t JPEG_SaveImage_to_Buffer (char *jpegbuf, size_t jpegsize, int width, int height, unsigned char *data); // returns 0 if failed, or the size actually used +qboolean Image_Compress(const char *imagename, size_t maxsize, void **buf, size_t *size); #endif