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