libjxl

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

opsin_params.h (756B)


      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 #ifndef LIB_JXL_OPSIN_PARAMS_H_
      7 #define LIB_JXL_OPSIN_PARAMS_H_
      8 
      9 // Constants that define the XYB color space.
     10 
     11 #include "lib/jxl/base/compiler_specific.h"
     12 
     13 namespace jxl {
     14 
     15 // Returns 3x3 row-major matrix inverse of kOpsinAbsorbanceMatrix.
     16 // opsin_image_test verifies this is actually the inverse.
     17 const float* GetOpsinAbsorbanceInverseMatrix();
     18 
     19 void InitSIMDInverseMatrix(const float* JXL_RESTRICT inverse,
     20                            float* JXL_RESTRICT simd_inverse,
     21                            float intensity_target);
     22 
     23 }  // namespace jxl
     24 
     25 #endif  // LIB_JXL_OPSIN_PARAMS_H_