Files
ImHex-Patterns/patterns/ras.hexpat
Mrmaxmeier c533017d0b git: Various style fixes everywhere, removing whitespaces (#321)
* repo-wide: trim trailing spaces

Note: This doesn't touch the .tbl files in encodings/ since they include
meaningful trailing spaces (`20= `)

* patterns: clean up duplicate semicolons

* ELF: add header magic check

* glTF: use type::Magic for magic value

* glTF: check that the file size in the header matches

* xgstexture: fix generics syntax for magic value

* JPEG: define hex enum with 0x00 instead of 0X00

* CI: update deprecated actions

---------

Co-authored-by: Nik <werwolv98@gmail.com>
2024-11-24 11:41:26 +01:00

32 lines
453 B
Rust

#pragma author Fl3ch4
#pragma description RAS image
#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;