mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-27 23:37:04 -05:00
* patterns/uf2: add family ID enum * patterns/uf2: Fix enum spacing * patterns: add missing description pragmas and README entries, etc. * patterns/uf2: add reference for Family ID enum
32 lines
465 B
Rust
32 lines
465 B
Rust
#pragma author Fl3ch4
|
|
#pragma description RAS image files
|
|
#pragma MIME image/x-sun-raster
|
|
#pragma endian big
|
|
|
|
|
|
import std.mem;
|
|
import type.magic;
|
|
|
|
|
|
struct RAS{
|
|
|
|
//Magic Bytes
|
|
type::Magic<"\x59\xa6\x6a\x95"> signature;
|
|
|
|
//BE -> px -> mm
|
|
u32 width [[name("Width")]];
|
|
u32 height [[name("Height")]];
|
|
|
|
//BE
|
|
u32 depth;
|
|
u32 length;
|
|
u32 type;
|
|
u32 colorMapType;
|
|
u32 colorMapLenght;
|
|
|
|
//Data Viewer
|
|
u8 image_data[length];
|
|
};
|
|
|
|
RAS header @0x00;
|