snippet/uncompng: support APNG (Animated PNG)

This commit is contained in:
Nigel Tao committed 2026-09-15 10:42:51 +10:00
1 parent 742e8b78d9
commit 1ca418ef16
7 files changed
+1008 -106

No files matched your search

+11
View File
@@ -255,6 +255,17 @@ struct {
bool output_nia_or_crc32_digest; // Implicitly set.
bool output_nie;
bool output_uncompressed_png;
// There is no "bool output_uncompressed_apng" option. At the file format
// level, writing an Animated PNG requires knowing the total number of frames
// very early in the output (to write in the acTL chunk). In contrast,
// convert-to-nia can convert from image formats (such as GIF) that do not
// have an explicit "number of frames" record, only an implicit one (like
// NIA), calculated by parsing every frame. But convert-to-nia also does not
// assume that its input or output is rewindable. It is designed to operate
// under a SECCOMP_MODE_STRICT sandbox in O(1) memory, where it only reads
// its input or write its output forward, as non-seekable streams.
} g_flags = {0};
const char* //