settings: Display libjpeg-turbo version

This commit is contained in:
Joel16 2020-12-30 17:47:01 -05:00
parent cc1c574491
commit eb2bcd914c
2 changed files with 79 additions and 0 deletions

73
libs/turbojpeg/jconfig.h Normal file
View File

@ -0,0 +1,73 @@
/* Version ID for the JPEG library.
* Might be useful for tests like "#if JPEG_LIB_VERSION >= 60".
*/
#define JPEG_LIB_VERSION 62
/* libjpeg-turbo version */
#define LIBJPEG_TURBO_VERSION 2.0.6
/* libjpeg-turbo version in integer form */
#define LIBJPEG_TURBO_VERSION_NUMBER 2000006
/* Support arithmetic encoding */
/* #undef C_ARITH_CODING_SUPPORTED */
/* Support arithmetic decoding */
#define D_ARITH_CODING_SUPPORTED 1
/* Support in-memory source/destination managers */
#define MEM_SRCDST_SUPPORTED 1
/* Use accelerated SIMD routines. */
#define WITH_SIMD 1
/*
* Define BITS_IN_JSAMPLE as either
* 8 for 8-bit sample values (the usual setting)
* 12 for 12-bit sample values
* Only 8 and 12 are legal data precisions for lossy JPEG according to the
* JPEG standard, and the IJG code does not support anything else!
* We do not support run-time selection of data precision, sorry.
*/
#define BITS_IN_JSAMPLE 8 /* use 8 or 12 */
/* Define to 1 if you have the <locale.h> header file. */
/* #undef HAVE_LOCALE_H */
/* Define to 1 if you have the <stddef.h> header file. */
#define HAVE_STDDEF_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
/* #undef HAVE_STDLIB_H */
/* Define if you need to include <sys/types.h> to get size_t. */
/* #undef NEED_SYS_TYPES_H */
/* Define if you have BSD-like bzero and bcopy in <strings.h> rather than
memset/memcpy in <string.h>. */
/* #undef NEED_BSD_STRINGS */
/* Define to 1 if the system has the type `unsigned char'. */
/* #undef HAVE_UNSIGNED_CHAR */
/* Define to 1 if the system has the type `unsigned short'. */
/* #undef HAVE_UNSIGNED_SHORT */
/* Compiler does not support pointers to undefined structures. */
/* #undef INCOMPLETE_TYPES_BROKEN */
/* Define if your (broken) compiler shifts signed values as if they were
unsigned. */
/* #undef RIGHT_SHIFT_IS_UNSIGNED */
/* Define to 1 if type `char' is unsigned and you are not using gcc. */
#ifndef __CHAR_UNSIGNED__
/* #undef __CHAR_UNSIGNED__ */
#endif
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `unsigned int' if <sys/types.h> does not define. */
/* #undef size_t */

View File

@ -1,3 +1,4 @@
#include <jconfig.h>
#include <png.h> #include <png.h>
#include <tiffvers.h> #include <tiffvers.h>
#include <webp/decode.h> #include <webp/decode.h>
@ -7,6 +8,9 @@
#include "imgui.h" #include "imgui.h"
#include "windows.h" #include "windows.h"
#define STRINGIFY(x) #x
#define TO_STRING(x) STRINGIFY(x)
namespace Windows { namespace Windows {
static void Separator(void) { static void Separator(void) {
ImGui::Dummy(ImVec2(0.0f, 5.0f)); // Spacing ImGui::Dummy(ImVec2(0.0f, 5.0f)); // Spacing
@ -58,6 +62,8 @@ namespace Windows {
ImGui::Dummy(ImVec2(0.0f, 5.0f)); // Spacing ImGui::Dummy(ImVec2(0.0f, 5.0f)); // Spacing
ImGui::Text("Dear imGui version: %s", ImGui::GetVersion()); ImGui::Text("Dear imGui version: %s", ImGui::GetVersion());
ImGui::Dummy(ImVec2(0.0f, 5.0f)); // Spacing ImGui::Dummy(ImVec2(0.0f, 5.0f)); // Spacing
ImGui::Text("libjpeg-turbo version: %s", TO_STRING(LIBJPEG_TURBO_VERSION));
ImGui::Dummy(ImVec2(0.0f, 5.0f)); // Spacing
ImGui::Text("libpng version: %s", PNG_LIBPNG_VER_STRING); ImGui::Text("libpng version: %s", PNG_LIBPNG_VER_STRING);
ImGui::Dummy(ImVec2(0.0f, 5.0f)); // Spacing ImGui::Dummy(ImVec2(0.0f, 5.0f)); // Spacing
ImGui::Text("LibTIFF version: %d", TIFFLIB_VERSION); ImGui::Text("LibTIFF version: %d", TIFFLIB_VERSION);