libjxl

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

simd_util.h (587B)


      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_SIMD_UTIL_H_
      7 #define LIB_JXL_SIMD_UTIL_H_
      8 #include <stddef.h>
      9 
     10 namespace jxl {
     11 
     12 // Maximal vector size in bytes.
     13 size_t MaxVectorSize();
     14 
     15 // Returns distance [bytes] between the start of two consecutive rows, a
     16 // multiple of vector/cache line size but NOT CacheAligned::kAlias - see below.
     17 size_t BytesPerRow(size_t xsize, size_t sizeof_t);
     18 
     19 }  // namespace jxl
     20 
     21 #endif  // LIB_JXL_SIMD_UTIL_H_