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/padded_bytes.h" 15 #include "lib/jxl/base/span.h" 16 #include "lib/jxl/base/status.h" 17 #include "lib/jxl/codec_in_out.h" 18 19 namespace jxl { 20 namespace extras { 21 22 // Decodes `bytes` into `ppf`. color_hints are ignored. 23 Status DecodeImageEXR(Span<const uint8_t> bytes, const ColorHints& color_hints, 24 const SizeConstraints& constraints, ThreadPool* pool, 25 PackedPixelFile* ppf); 26 27 } // namespace extras 28 } // namespace jxl 29 30 #endif // LIB_EXTRAS_DEC_EXR_H_ 31