libjxl

FORK: libjxl patches used on blog
git clone https://git.neptards.moe/blog/libjxl.git
Log | Files | Refs | Submodules | README | LICENSE

version.h.in (1179B)


      1 /* Copyright (c) the JPEG XL Project Authors. All rights reserved.
      2  *
      3  * Use of this source code is governed by a BSD-style
      4  * license that can be found in the LICENSE file.
      5  */
      6 
      7 /** @addtogroup libjxl_common
      8  * @{
      9  * @file version.h
     10  * @brief libjxl version information
     11  */
     12 
     13 #ifndef JXL_VERSION_H_
     14 #define JXL_VERSION_H_
     15 
     16 #define JPEGXL_MAJOR_VERSION @JPEGXL_MAJOR_VERSION@ ///< JPEG XL Major version
     17 #define JPEGXL_MINOR_VERSION @JPEGXL_MINOR_VERSION@ ///< JPEG XL Minor version
     18 #define JPEGXL_PATCH_VERSION @JPEGXL_PATCH_VERSION@ ///< JPEG XL Patch version
     19 
     20 /** Can be used to conditionally compile code for a specific JXL version
     21  * @param[maj] major version
     22  * @param[min] minor version
     23  *
     24  * @code
     25  * #if JPEGXL_NUMERIC_VERSION < JPEGXL_COMPUTE_NUMERIC_VERSION(0,8,0)
     26  * // use old/deprecated api
     27  * #else
     28  * // use current api
     29  * #endif
     30  * @endcode
     31  */
     32 #define JPEGXL_COMPUTE_NUMERIC_VERSION(major,minor,patch) (((major)<<24) | ((minor)<<16) | ((patch)<<8) | 0)
     33 
     34 /* Numeric representation of the version */
     35 #define JPEGXL_NUMERIC_VERSION JPEGXL_COMPUTE_NUMERIC_VERSION(JPEGXL_MAJOR_VERSION,JPEGXL_MINOR_VERSION,JPEGXL_PATCH_VERSION)
     36 
     37 #endif /* JXL_VERSION_H_ */
     38 
     39 /** @}*/