X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=jpeg.h;h=f869d6a091dd2e77741fa6f657b30c5b130678e6;hb=899bfdf7f2fffda998b1e4b2484b71273b99ecd0;hp=ff17eb753b8658bc94390205fc30c84bb0340f01;hpb=bf54dd6e7fb965287073b669235a7b30c7f96923;p=xonotic%2Fdarkplaces.git diff --git a/jpeg.h b/jpeg.h index ff17eb75..f869d6a0 100644 --- a/jpeg.h +++ b/jpeg.h @@ -24,16 +24,18 @@ #ifndef JPEG_H #define JPEG_H +#include +#include "qtypes.h" -qboolean JPEG_OpenLibrary (void); +qbool JPEG_OpenLibrary (void); void JPEG_CloseLibrary (void); 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); +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); -qboolean Image_Compress(const char *imagename, size_t maxsize, void **buf, size_t *size); +qbool Image_Compress(const char *imagename, size_t maxsize, void **buf, size_t *size); #endif