-
Notifications
You must be signed in to change notification settings - Fork 7
.drm file format
chreden edited this page Sep 3, 2020
·
7 revisions
Data Type | Name | Usage |
---|---|---|
uint32 | Version | File version (14 for Anniversary) |
uint32 | Number of sections | |
Header x number of sections | Section headers | |
SectionData x number of sections | Sections | Type depends on Header.type |
Data Type | Name | Usage |
---|---|---|
uint32 | Length | Length of section in bytes |
SectionType | type | Type of section |
uint32 | preamble | Number of header bits |
uint32 | id | Id (not confirmed) |
uint32 | separator | FFFFFFFF |
Underlying type: uint32
Value | Usage |
---|---|
0 | Data |
5 | Texture |
6 | Audio |
Data Type | Name | Usage |
---|---|---|
byte[header.preamble / 32] | header | Optional header data |
byte[header.length] | data | Section data |
Data Type | Name | Usage |
---|---|---|
byte[header.preamble / 32] | header | Optional header data |
uint32 | PCD9 | PCD9 Literal |
char[4] | Format | Texture format: DXT1/DXT5 usually |
uint32 | Pixel Data Length | Number of bytes of pixel data |
uint32 | Unknown | |
uint32 | Unknown | |
uint16 | Width | Width of the texture in pixels |
uint16 | Height | Height of the texture in pixels |
uint32 | Unknown | |
byte[Pixel Data Length] | Pixel Data |