tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

opsin_params.h (788B)


      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 #include "lib/jxl/base/matrix_ops.h"
     13 
     14 namespace jxl {
     15 
     16 // Returns 3x3 row-major matrix inverse of kOpsinAbsorbanceMatrix.
     17 // opsin_image_test verifies this is actually the inverse.
     18 const Matrix3x3& GetOpsinAbsorbanceInverseMatrix();
     19 
     20 void InitSIMDInverseMatrix(const Matrix3x3& inverse,
     21                           float* JXL_RESTRICT simd_inverse,
     22                           float intensity_target);
     23 
     24 }  // namespace jxl
     25 
     26 #endif  // LIB_JXL_OPSIN_PARAMS_H_