X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=jpeg.h;h=3b8738cdabdb6e8d8786fca770bb696b6e29bb14;hb=43ccc403e08b7b72eb687f2d3700e14ea078d30a;hp=ccc86b8ab6445253809885939b1f054a59066eb8;hpb=fd091d66e2673b19eb9c7d73d95160ef874de5e6;p=xonotic%2Fdarkplaces.git diff --git a/jpeg.h b/jpeg.h index ccc86b8a..3b8738cd 100644 --- a/jpeg.h +++ b/jpeg.h @@ -30,5 +30,10 @@ void JPEG_CloseLibrary (void); 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); +/*! \returns 0 if failed, or the size actually used. + */ +size_t JPEG_SaveImage_to_Buffer (char *jpegbuf, size_t jpegsize, int width, int height, unsigned char *data); +qboolean Image_Compress(const char *imagename, size_t maxsize, void **buf, size_t *size); + #endif