X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=jpeg.h;h=ff17eb753b8658bc94390205fc30c84bb0340f01;hb=ad37bc7de1dce1d858f74df2d70dc214983fb934;hp=f0f27c677ae0f82b58b360e80aa13a967fc8de9f;hpb=542f6670e0f2250b940e987348b8c454c59495a2;p=xonotic%2Fdarkplaces.git diff --git a/jpeg.h b/jpeg.h index f0f27c67..ff17eb75 100644 --- a/jpeg.h +++ b/jpeg.h @@ -27,9 +27,12 @@ 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); -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 + +/*! \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);