37 #include "config_auto.h" 40 #include "allheaders.h" 70 #include "webp/encode.h" 75 #include LIBJP2K_HEADER 104 l_int32 first = TRUE;
107 char *versionStrP = NULL;
113 snprintf(buf,
sizeof(buf),
"%d.%d.%d", GIFLIB_MAJOR, GIFLIB_MINOR,
123 struct jpeg_compress_struct cinfo;
124 struct jpeg_error_mgr err;
125 char buffer[JMSG_LENGTH_MAX];
126 cinfo.err = jpeg_std_error(&err);
127 err.msg_code = JMSG_VERSION;
128 (*err.format_message) ((j_common_ptr ) &cinfo, buffer);
133 versionNumP =
strtokSafe(buffer,
" ", &nextTokenP);
135 LEPT_FREE(versionNumP);
137 #if defined(LIBJPEG_TURBO_VERSION) 141 #define l_xstr(s) l_str(s) 143 snprintf(buf,
sizeof(buf),
" (libjpeg-turbo %s)",
144 l_xstr(LIBJPEG_TURBO_VERSION));
161 versionNumP =
strtokSafe((
char *)TIFFGetVersion(),
" \n", &nextTokenP);
162 LEPT_FREE(versionNumP);
163 versionNumP =
strtokSafe(NULL,
" \n", &nextTokenP);
164 LEPT_FREE(versionNumP);
165 versionNumP =
strtokSafe(NULL,
" \n", &nextTokenP);
167 LEPT_FREE(versionNumP);
184 val = WebPGetEncoderVersion();
185 snprintf(buf,
sizeof(buf),
"%d.%d.%d", val >> 16, (val >> 8) & 0xff,
197 version = opj_version();
char * getImagelibVersions()
getImagelibVersions()
l_ok stringJoinIP(char **psrc1, const char *src2)
stringJoinIP()
char * strtokSafe(char *cstr, const char *seps, char **psaveptr)
strtokSafe()
l_ok stringCopy(char *dest, const char *src, l_int32 n)
stringCopy()