From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:CUPS raster" |
|---|
| claim | "A CUPS raster stream begins with a 32-bit sync word: RaS3, RaSt (v1 header), RaS2 (compressed; CUPS_RASTER_SYNC_PWG is the same value) or UNIR (Apple); the byte-reversed values (3SaR, tSaR, 2SaR, RINU) mark a stream in the opposite byte order. The reader treats RaS2 and Apple streams as compressed." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "CUPS raster, PWG Raster, Apple raster" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "cups_raster_sync" |
|---|
| underlying_type | "uint32_t" |
|---|
| complete | true |
|---|
| values | | 0x52615333 | "CUPS_RASTER_SYNC" |
|---|
| 0x33536152 | "CUPS_RASTER_REVSYNC" |
|---|
| 0x52615374 | "CUPS_RASTER_SYNCv1" |
|---|
| 0x74536152 | "CUPS_RASTER_REVSYNCv1" |
|---|
| 0x52615332 | "CUPS_RASTER_SYNCv2" |
|---|
| 0x32536152 | "CUPS_RASTER_REVSYNCv2" |
|---|
| 0x554E4952 | "CUPS_RASTER_SYNCapple" |
|---|
| 0x52494E55 | "CUPS_RASTER_REVSYNCapple" |
|---|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "sync word defines" |
|---|
| repo | "OpenPrinting/cups" |
|---|
| commit | "cf2fc5c9390264e4cc0c0d02abdde1a18218b07e" |
|---|
| path | "cups/raster.h" |
|---|
| lines | "24-36" |
|---|
|
| type | "source" |
|---|
| detail | "any other sync is 'Unknown raster format'; v2 and apple set compressed; reversed values set swapped" |
|---|
| repo | "OpenPrinting/cups" |
|---|
| commit | "cf2fc5c9390264e4cc0c0d02abdde1a18218b07e" |
|---|
| path | "cups/raster-stream.c" |
|---|
| lines | "807-822" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Raster sync words" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:37:24.645Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:57:49.956Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read cups/raster.h at cf2fc5c9 lines 24-36: all 8 sync values and the CUPS_RASTER_SYNC_PWG alias of SYNCv2 match the fact; complete." |
|---|
| notes | "Complete." |
|---|
|
|
|---|