]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - jpeg.h
makefile: Delete references to nonexistent files
[xonotic/darkplaces.git] / jpeg.h
diff --git a/jpeg.h b/jpeg.h
index d9de27c5f19cd9efc0e4d139aa15f3a77580f47d..f869d6a091dd2e77741fa6f657b30c5b130678e6 100644 (file)
--- a/jpeg.h
+++ b/jpeg.h
 #ifndef JPEG_H
 #define JPEG_H
 
+#include <stddef.h>
+#include "qtypes.h"
 
-qboolean JPEG_OpenLibrary (void);
+qbool JPEG_OpenLibrary (void);
 void JPEG_CloseLibrary (void);
-qbyte* JPEG_LoadImage (qbyte *f, int matchwidth, int matchheight);
+unsigned char* JPEG_LoadImage_BGRA (const unsigned char *f, int filesize, int *miplevel);
+qbool 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);
+qbool Image_Compress(const char *imagename, size_t maxsize, void **buf, size_t *size);
 
 
 #endif