]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - jpeg.h
add a menu/csqc field .drawfontscale to scale the font drawn by drawfont but not...
[xonotic/darkplaces.git] / jpeg.h
diff --git a/jpeg.h b/jpeg.h
index d6bf4808a48c83ced58d388d3246ca10857fef6e..3b8738cdabdb6e8d8786fca770bb696b6e29bb14 100644 (file)
--- a/jpeg.h
+++ b/jpeg.h
 
 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);
+
+/*! \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