mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-27 23:37:04 -05:00
patterns/fas/was: Update FAS, WAS/WA3 pattern files and README.md (#425)
* Add .fas and .was pattern files (Oska DeskMates) * Update .was pattern file * Update .was/.wa3 pattern file * Update README.md * Update README.md * Update .fas & .was pattern files * Update README.md * Update fas_oskasoftware_old.hexpat * Added WAS test file * Update WAS test file * Update was_oskasoftware.hexpat * Update was_oskasoftware.hexpat * Update fas_oskasoftware_old.hexpat * Update fas_oskasoftware.hexpat * Update README.md Replacing backward slashes with forward ones in the `WAS` row. * Update fas_oskasoftware_old.hexpat * Update was_oskasoftware.hexpat
This commit is contained in:
@@ -191,7 +191,7 @@ Everything will immediately show up in ImHex's Content Store and gets bundled wi
|
|||||||
| VHDX | | [`patterns/vhdx.hexpat`](patterns/vhdx.hexpat) | Microsoft Hyper-V Virtual Hard Disk format |
|
| VHDX | | [`patterns/vhdx.hexpat`](patterns/vhdx.hexpat) | Microsoft Hyper-V Virtual Hard Disk format |
|
||||||
| VOX | | [`patterns/vox.hexpat`](patterns/vox.hexpat) | MagicaVoxel scene description format |
|
| VOX | | [`patterns/vox.hexpat`](patterns/vox.hexpat) | MagicaVoxel scene description format |
|
||||||
| WAV | `audio/x-wav` | [`patterns/wav.hexpat`](patterns/wav.hexpat) | RIFF header, WAVE header, PCM header |
|
| WAV | `audio/x-wav` | [`patterns/wav.hexpat`](patterns/wav.hexpat) | RIFF header, WAVE header, PCM header |
|
||||||
| WAS | | [`patterns\was_oskasoftware.hexpat`](patterns\was_oskasoftware.hexpat) | Oska Software DeskMates WAS/WA3 (WAVE/MP3 Set) file
|
| WAS | | [`patterns/was_oskasoftware.hexpat`](patterns/was_oskasoftware.hexpat) | Oska Software DeskMates WAS/WA3 (WAVE/MP3 Set) file
|
||||||
| WAD | | [`patterns/wad.hexpat`](patterns/wad.hexpat) | DOOM WAD Archive |
|
| WAD | | [`patterns/wad.hexpat`](patterns/wad.hexpat) | DOOM WAD Archive |
|
||||||
| WebP | `image/webp` | [`patterns/webp.hexpat`](patterns/webp.hexpat) | Google WebP image |
|
| WebP | `image/webp` | [`patterns/webp.hexpat`](patterns/webp.hexpat) | Google WebP image |
|
||||||
| XBEH | `audio/x-xbox-executable` | [`patterns/xbeh.hexpat`](patterns/xbeh.hexpat) | Xbox executable |
|
| XBEH | `audio/x-xbox-executable` | [`patterns/xbeh.hexpat`](patterns/xbeh.hexpat) | Xbox executable |
|
||||||
|
|||||||
@@ -1,25 +1,25 @@
|
|||||||
#pragma author DmitriLeon2000
|
#pragma author DmitriLeon2000
|
||||||
#pragma description Oska Software DeskMates FAS (Frames and Sequences) file
|
#pragma description Oska Software DeskMates FAS (Frames and Sequences)
|
||||||
#pragma endian little
|
#pragma endian little
|
||||||
|
|
||||||
enum Compression : u32 {
|
enum Compression : u32 {
|
||||||
BI_RGB,
|
BI_RGB,
|
||||||
BI_RLE8,
|
BI_RLE8,
|
||||||
BI_RLE4,
|
BI_RLE4,
|
||||||
BI_BITFIELDS,
|
BI_BITFIELDS,
|
||||||
BI_JPEG,
|
BI_JPEG,
|
||||||
BI_PNG,
|
BI_PNG,
|
||||||
BI_ALPHABITFIELDS,
|
BI_ALPHABITFIELDS,
|
||||||
BI_CMYK,
|
BI_CMYK,
|
||||||
BI_CMYKRLE8,
|
BI_CMYKRLE8,
|
||||||
BI_CMYKRLE4,
|
BI_CMYKRLE4,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Colors {
|
struct Colors {
|
||||||
u8 blue;
|
u8 blue;
|
||||||
u8 green;
|
u8 green;
|
||||||
u8 red;
|
u8 red;
|
||||||
u8 reserved;
|
u8 reserved;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct FASHeader {
|
struct FASHeader {
|
||||||
@@ -69,7 +69,7 @@ struct SeqHeader {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct Bitmap {
|
struct Bitmap {
|
||||||
u8 byte[fas.fasHeader.version >= 3 ? fas.fasHeader.frameSize + (fas.frameSizeHigh << 16) : fas.fasHeader.frameSize];
|
u8 byte[parent.fasHeader.version >= 3 ? parent.fasHeader.frameSize + (parent.frameSizeHigh << 16) : parent.fasHeader.frameSize] [[sealed]];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct FramesHeader {
|
struct FramesHeader {
|
||||||
@@ -105,7 +105,7 @@ struct FAS {
|
|||||||
u8 filenameChecksum; // a checksum for a filename in ASCII
|
u8 filenameChecksum; // a checksum for a filename in ASCII
|
||||||
AnimSequence sequences[seqHeader.count];
|
AnimSequence sequences[seqHeader.count];
|
||||||
FramesHeader framesHeader;
|
FramesHeader framesHeader;
|
||||||
|
Bitmap framesBitmap[framesHeader.count];
|
||||||
};
|
};
|
||||||
|
|
||||||
FAS fas @ 0x00;
|
FAS fas @ 0x00;
|
||||||
Bitmap framesBitmap[fas.framesHeader.count] @ $;
|
|
||||||
@@ -1,25 +1,25 @@
|
|||||||
#pragma author DmitriLeon2000
|
#pragma author DmitriLeon2000
|
||||||
#pragma description Oska Software DeskMates FAS (Frames and Sequences) file (Oska DeskMate versions 1.3 and 2.06)
|
#pragma description Oska Software DeskMates FAS (Frames and Sequences) (Oska DeskMate 1.03 and 2.06)
|
||||||
#pragma endian little
|
#pragma endian little
|
||||||
|
|
||||||
enum Compression : u32 {
|
enum Compression : u32 {
|
||||||
BI_RGB,
|
BI_RGB,
|
||||||
BI_RLE8,
|
BI_RLE8,
|
||||||
BI_RLE4,
|
BI_RLE4,
|
||||||
BI_BITFIELDS,
|
BI_BITFIELDS,
|
||||||
BI_JPEG,
|
BI_JPEG,
|
||||||
BI_PNG,
|
BI_PNG,
|
||||||
BI_ALPHABITFIELDS,
|
BI_ALPHABITFIELDS,
|
||||||
BI_CMYK,
|
BI_CMYK,
|
||||||
BI_CMYKRLE8,
|
BI_CMYKRLE8,
|
||||||
BI_CMYKRLE4,
|
BI_CMYKRLE4,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Colors {
|
struct Colors {
|
||||||
u8 blue;
|
u8 blue;
|
||||||
u8 green;
|
u8 green;
|
||||||
u8 red;
|
u8 red;
|
||||||
u8 reserved;
|
u8 reserved;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct FASHeader {
|
struct FASHeader {
|
||||||
@@ -59,14 +59,14 @@ struct AnimSequence {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct SeqHeader {
|
struct SeqHeader {
|
||||||
le u32 size;
|
le u32 size;
|
||||||
le u32 count;
|
le u32 count;
|
||||||
le u32 strPointers[count*2];
|
le u32 strPointers[count*2];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Frame {
|
struct Frame {
|
||||||
u8 colorBitmap[fas.fasHeader.frameSizeColor];
|
u8 colorBitmap[parent.fasHeader.frameSizeColor] [[sealed]];
|
||||||
u8 maskBitmap[fas.fasHeader.frameSizeMask];
|
u8 maskBitmap[parent.fasHeader.frameSizeMask] [[sealed]];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct FramesHeader {
|
struct FramesHeader {
|
||||||
@@ -80,8 +80,7 @@ struct FAS {
|
|||||||
SeqHeader seqHeader;
|
SeqHeader seqHeader;
|
||||||
AnimSequence sequences[seqHeader.count];
|
AnimSequence sequences[seqHeader.count];
|
||||||
FramesHeader framesHeader;
|
FramesHeader framesHeader;
|
||||||
|
Frame frames[framesHeader.count];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
FAS fas @ 0x00;
|
FAS fas @ 0x00;
|
||||||
Frame frames[fas.framesHeader.count] @ $;
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import type.size;
|
|||||||
struct Sound {
|
struct Sound {
|
||||||
char name[];
|
char name[];
|
||||||
u32 length;
|
u32 length;
|
||||||
u8 data[length];
|
u8 data[length] [[sealed]];
|
||||||
};
|
} [[name(name), hex::visualize("sound", data, 1, 8000)]];
|
||||||
|
|
||||||
struct Header {
|
struct Header {
|
||||||
type::Size<u32> size;
|
type::Size<u32> size;
|
||||||
|
|||||||
Reference in New Issue
Block a user