From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:WAD (Doom engine)" |
|---|
| claim | "A Doom picture lump starts with int16 width, height, left offset, top offset, followed by width uint32 column offsets from the lump start; each column is a list of posts (top row byte, length byte, pad byte, pixels, pad byte) ended by a top row of 0xFF." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:WAD (Doom engine)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "patch_t" |
|---|
| size_min | "0xC" |
|---|
| size_max | "0x20004" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "width" |
|---|
|
| offset | "0x2" |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "height" |
|---|
|
| offset | "0x4" |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "leftoffset" |
|---|
|
| offset | "0x6" |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "topoffset" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "int32_t[width]" |
|---|
| name | "columnofs" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "linuxdoom-1.10/r_defs.h patch_t and post_t; r_data.c R_DrawColumnInCache reads pixels at post + 3 and stops at topdelta 0xFF." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "freedoom1.wad TITLEPIC: 320x200, first column at 8 + 320*4 = 1288." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Picture (patch) header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T03:43:16.755Z" |
|---|
| verifications | |
|---|