X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=jpeg.h;h=ff17eb753b8658bc94390205fc30c84bb0340f01;hp=ccc86b8ab6445253809885939b1f054a59066eb8;hb=85a33377d64ae8438e6582a7b8472f5a4bd41942;hpb=fd091d66e2673b19eb9c7d73d95160ef874de5e6 diff --git a/jpeg.h b/jpeg.h index ccc86b8a..ff17eb75 100644 --- a/jpeg.h +++ b/jpeg.h @@ -27,8 +27,13 @@ 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. + */ +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