libjxl

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

exr.h (867B)


      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_EXTRAS_DEC_EXR_H_
      7 #define LIB_EXTRAS_DEC_EXR_H_
      8 
      9 // Decodes OpenEXR images in memory.
     10 
     11 #include "lib/extras/dec/color_hints.h"
     12 #include "lib/extras/packed_image.h"
     13 #include "lib/jxl/base/data_parallel.h"
     14 #include "lib/jxl/base/span.h"
     15 #include "lib/jxl/base/status.h"
     16 
     17 namespace jxl {
     18 
     19 struct SizeConstraints;
     20 
     21 namespace extras {
     22 
     23 bool CanDecodeEXR();
     24 
     25 // Decodes `bytes` into `ppf`. color_hints are ignored.
     26 Status DecodeImageEXR(Span<const uint8_t> bytes, const ColorHints& color_hints,
     27                       PackedPixelFile* ppf,
     28                       const SizeConstraints* constraints = nullptr);
     29 
     30 }  // namespace extras
     31 }  // namespace jxl
     32 
     33 #endif  // LIB_EXTRAS_DEC_EXR_H_