37 #include <config_auto.h>
40 #include "allheaders.h"
70 #include "webp/encode.h"
75 #include LIBJP2K_HEADER
105 l_int32 first = TRUE;
108 char *versionStrP = NULL;
114 snprintf(buf,
sizeof(buf),
"%d.%d.%d", GIFLIB_MAJOR, GIFLIB_MINOR,
124 struct jpeg_compress_struct cinfo;
125 struct jpeg_error_mgr err;
126 char buffer[JMSG_LENGTH_MAX];
127 cinfo.err = jpeg_std_error(&err);
128 err.msg_code = JMSG_VERSION;
129 (*err.format_message) ((j_common_ptr ) &cinfo, buffer);
134 versionNumP =
strtokSafe(buffer,
" ", &nextTokenP);
136 LEPT_FREE(versionNumP);
138 #if defined(LIBJPEG_TURBO_VERSION)
142 #define l_xstr(s) l_str(s)
144 snprintf(buf,
sizeof(buf),
" (libjpeg-turbo %s)",
145 l_xstr(LIBJPEG_TURBO_VERSION));
162 versionNumP =
strtokSafe((
char *)TIFFGetVersion(),
" \n", &nextTokenP);
163 LEPT_FREE(versionNumP);
164 versionNumP =
strtokSafe(NULL,
" \n", &nextTokenP);
165 LEPT_FREE(versionNumP);
166 versionNumP =
strtokSafe(NULL,
" \n", &nextTokenP);
168 LEPT_FREE(versionNumP);
185 val = WebPGetEncoderVersion();
186 snprintf(buf,
sizeof(buf),
"%d.%d.%d", val >> 16, (val >> 8) & 0xff,
198 version = opj_version();
char * getImagelibVersions(void)
getImagelibVersions()
char * strtokSafe(char *cstr, const char *seps, char **psaveptr)
strtokSafe()
l_ok stringJoinIP(char **psrc1, const char *src2)
stringJoinIP()
l_ok stringCopy(char *dest, const char *src, l_int32 n)
stringCopy()