1 // Copyright (c) the JPEG XL Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file.
6 #ifndef LIB_EXTRAS_DEC_GIF_H_
7 #define LIB_EXTRAS_DEC_GIF_H_
9 // Decodes GIF images in memory.
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/span.h"
17 #include "lib/jxl/base/status.h"
21 struct SizeConstraints;
27 // Decodes `bytes` into `ppf`. color_hints are ignored.
28 Status DecodeImageGIF(Span<const uint8_t> bytes, const ColorHints& color_hints,
30 const SizeConstraints* constraints = nullptr);
35 #endif // LIB_EXTRAS_DEC_GIF_H_