From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:JPEG" |
|---|
| claim | "Entropy-coded data after SOS runs to the next marker: an FF data byte is stuffed as FF 00, FF D0..FF D7 are restart markers inside the data, FF FF is fill; any other FF xx ends the scan. So the end of a scan can be found without decoding by scanning for FF followed by a byte that is not 00, FF or D0-D7." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:JPEG" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "walking a JPEG file segment by segment" |
|---|
| effect | "skip entropy-coded data after each SOS until FF followed by a byte other than 00/FF/D0-D7" |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "ITU-T T.81 B.1.1.5 (byte stuffing) and B.1.1.2 (fill bytes), F.1.2.3 restart markers" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "jpegdump walked all 11 Pillow files (including a restart_marker_blocks=4 file and a 10-scan progressive file) to EOI with this rule; counts of stuffed FF 00 and RST markers reported per scan" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Entropy-coded data boundary" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T14:07:21.061Z" |
|---|
| verifications | |
|---|