Files
odfstudio/external/libjxl/version.h
T
Jesus Solis 26eea7a59b external: add libjxl
libjxl is a library for encoding and decoding JPEG XL images

Downloaded from https://github.com/libjxl/libjxl/archive/refs/tags/v0.11.2.tar.gz

Change-Id: Ibb498f96b3576be603ee9a1c3c494d2ac99c403a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207085
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-08-22 13:33:00 +02:00

45 lines
1.2 KiB
C

/* Copyright (c) the JPEG XL Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
/** @addtogroup libjxl_common
* @{
* @file version.h
* @brief libjxl version information
*/
#ifndef JXL_VERSION_H_
#define JXL_VERSION_H_
#if defined(JPEGXL_MAJOR_VERSION) || defined(JPEGXL_MINOR_VERSION) || \
defined(JPEGXL_PATCH_VERSION)
#error JPEGXL_VERSION is already defined
#endif
#define JPEGXL_MAJOR_VERSION 0 ///< JPEG XL Major version
#define JPEGXL_MINOR_VERSION 11 ///< JPEG XL Minor version
#define JPEGXL_PATCH_VERSION 2 ///< JPEG XL Patch version
/** Can be used to conditionally compile code for a specific JXL version
* @param[maj] major version
* @param[min] minor version
*
* @code
* #if JPEGXL_NUMERIC_VERSION < JPEGXL_COMPUTE_NUMERIC_VERSION(0,8,0)
* // use old/deprecated api
* #else
* // use current api
* #endif
* @endcode
*/
#define JPEGXL_COMPUTE_NUMERIC_VERSION(major,minor,patch) (((major)<<24) | ((minor)<<16) | ((patch)<<8) | 0)
/* Numeric representation of the version */
#define JPEGXL_NUMERIC_VERSION JPEGXL_COMPUTE_NUMERIC_VERSION(JPEGXL_MAJOR_VERSION, JPEGXL_MINOR_VERSION, JPEGXL_PATCH_VERSION)
#endif /* JXL_VERSION_H_ */
/** @}*/