From 3b773d382e34fcfc7c8995d8bd681a6ef0529b02 Mon Sep 17 00:00:00 2001 From: Jiyong Date: Tue, 26 Dec 2023 10:55:00 +0900 Subject: Imported Upstream version 0.9.0 Change-Id: I60862786d19d92bb65425923bfeaa8ec236d8722 --- lib/extras/dec/gif.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib/extras/dec/gif.h') diff --git a/lib/extras/dec/gif.h b/lib/extras/dec/gif.h index b359517..4d5be86 100644 --- a/lib/extras/dec/gif.h +++ b/lib/extras/dec/gif.h @@ -15,14 +15,19 @@ #include "lib/jxl/base/data_parallel.h" #include "lib/jxl/base/span.h" #include "lib/jxl/base/status.h" -#include "lib/jxl/codec_in_out.h" namespace jxl { + +struct SizeConstraints; + namespace extras { +bool CanDecodeGIF(); + // Decodes `bytes` into `ppf`. color_hints are ignored. Status DecodeImageGIF(Span bytes, const ColorHints& color_hints, - const SizeConstraints& constraints, PackedPixelFile* ppf); + PackedPixelFile* ppf, + const SizeConstraints* constraints = nullptr); } // namespace extras } // namespace jxl -- cgit v1.2.3