From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:PNG" |
|---|
| claim | "The APNG frame control chunk fcTL is 26 bytes: sequence_number, width, height, x_offset, y_offset (u32 BE), delay_num, delay_den (u16 BE; den 0 means 100), dispose_op (0 none, 1 background, 2 previous), blend_op (0 source, 1 over). fcTL and fdAT share one sequence counter starting at 0 without gaps; acTL (num_frames, num_plays) is 8 bytes." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PNG" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "png_fcTL" |
|---|
| size | 26 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "sequence_number" |
|---|
| notes | "big-endian" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "width" |
|---|
| notes | "big-endian" |
|---|
|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "height" |
|---|
| notes | "big-endian" |
|---|
|
| offset | 12 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "x_offset" |
|---|
| notes | "big-endian" |
|---|
|
| offset | 16 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "y_offset" |
|---|
| notes | "big-endian" |
|---|
|
| offset | 20 |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "delay_num" |
|---|
| notes | "big-endian" |
|---|
|
| offset | 22 |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "delay_den" |
|---|
| notes | "big-endian; 0 is treated as 100" |
|---|
|
| offset | 24 |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "dispose_op" |
|---|
| notes | "0 NONE, 1 BACKGROUND, 2 PREVIOUS" |
|---|
|
| offset | 25 |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "blend_op" |
|---|
| notes | "0 SOURCE, 1 OVER" |
|---|
|
|
|---|
| endianness | "big" |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "https://www.w3.org/TR/png-3/ section 11.3.6 (APNG chunks: acTL with num_frames and num_plays, fcTL, fdAT)" |
|---|
|
| type | "source" |
|---|
| detail | "read_chunks entries (max_len, min_len): CDacTL 8U, 8U; CDfdAT Limit, 4U; CDfcTL 25U, 26U (max below min, harmless because the 1.6 handler is NULL)" |
|---|
| repo | "https://github.com/pnggroup/libpng" |
|---|
| commit | "cd952f49f95bb27154ae77dbb103032d95f6e580" |
|---|
| path | "pngrutil.c" |
|---|
| lines | "3079-3081" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "pngdump decoded a hand-written 2-frame APNG" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "fcTL" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T08:48:57.223Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-17T08:51:35.613Z" |
|---|
| summary | "Use C types (values are big-endian) so export_header emits typed fields" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:25:13.657Z" |
|---|
| summary | "Add data.endianness big (was only in field notes)." |
|---|
| changed | |
|---|
|
|
|---|