/*! \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);
/*! \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);