flash_layout
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
flash_layout [2024/11/20 19:31] – arisotura | flash_layout [2025/01/19 20:42] (current) – garyodernichts | ||
---|---|---|---|
Line 91: | Line 91: | ||
^ Offset ^ Length ^ Description ^ | ^ Offset ^ Length ^ Description ^ | ||
- | | 0x00 | + | | 0x00 |
+ | Bitmap = 0 | ||
+ | Sound = 1 | ||
+ | Unknown = 2 | ||
+ | | | ||
+ | | 0x02 | 2 | Resource ID | | ||
| 0x04 | 4 | Data offset (relative to the start of resource data) | | | 0x04 | 4 | Data offset (relative to the start of resource data) | | ||
| 0x08 | 4 | Data length | | | 0x08 | 4 | Data length | | ||
- | | 0x0C | + | | 0x0C |
- | | 0x10 | 4 | Parameter 1 | | + | |
- | | 0x14 | 4 | Parameter 2 | | + | |
- | There are two possible resource types: 0x00000008 for bitmap data and 0x00100000 for sound data. | + | For bitmap data, the following parameters |
- | For bitmap data, parameters 1 and 2 are respectively the width and height of the bitmap. The data starts with 256 32-bit ARGB palette entries, followed by 8-bit paletted bitmap data. | + | ^ Offset ^ Length ^ Description ^ |
+ | | 0x00 | 4 | ??? (Format / BPP)? Always | ||
+ | | 0x04 | 4 | Width | | ||
+ | | 0x08 | 4 | Height | | ||
- | For sound data, it isn't clear what parameters 1 and 2 mean. Parameter 2 is related to the data length. The data itself seems to be PCM16 samples. | + | The data starts with 256 32-bit ARGB palette entries, followed by 8-bit paletted bitmap |
+ | For sound data, the following parameters are used: | ||
+ | |||
+ | ^ Offset ^ Length ^ Description ^ | ||
+ | | 0x00 | 2 | ??? (Format)? | | ||
+ | | 0x02 | 2 | Bits per sample? Always 16. | | ||
+ | | 0x04 | 4 | Channels? Always 1. | | ||
+ | | 0x08 | 4 | Frequency | | ||
+ | |||
+ | The data itself are PCM samples. | ||
===== Language bank ===== | ===== Language bank ===== |
flash_layout.1732131075.txt.gz · Last modified: 2024/11/20 19:31 by arisotura