summaryrefslogtreecommitdiff
path: root/media/libjxl/src/lib/extras/enc/apng.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/libjxl/src/lib/extras/enc/apng.h')
-rw-r--r--media/libjxl/src/lib/extras/enc/apng.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/media/libjxl/src/lib/extras/enc/apng.h b/media/libjxl/src/lib/extras/enc/apng.h
new file mode 100644
index 0000000000..7f0fb94d9b
--- /dev/null
+++ b/media/libjxl/src/lib/extras/enc/apng.h
@@ -0,0 +1,28 @@
+// Copyright (c) the JPEG XL Project Authors. All rights reserved.
+//
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+#ifndef LIB_EXTRAS_ENC_APNG_H_
+#define LIB_EXTRAS_ENC_APNG_H_
+
+// Encodes APNG images in memory.
+
+#include "lib/jxl/base/data_parallel.h"
+#include "lib/jxl/base/padded_bytes.h"
+#include "lib/jxl/base/span.h"
+#include "lib/jxl/base/status.h"
+#include "lib/jxl/codec_in_out.h"
+
+namespace jxl {
+namespace extras {
+
+// Encodes `io` into `bytes`.
+Status EncodeImageAPNG(const CodecInOut* io, const ColorEncoding& c_desired,
+ size_t bits_per_sample, ThreadPool* pool,
+ PaddedBytes* bytes);
+
+} // namespace extras
+} // namespace jxl
+
+#endif // LIB_EXTRAS_ENC_APNG_H_