User Tools

Site Tools


flash_layout

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
flash_layout [2024/11/20 19:31] arisoturaflash_layout [2025/01/19 20:42] (current) garyodernichts
Line 91: Line 91:
  
 ^ Offset ^ Length ^ Description ^ ^ Offset ^ Length ^ Description ^
-| 0x00        | Resource ID |+| 0x00   2      | Resource type 
 +  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   4      Resource type | +| 0x0C   12     Parameters |
-| 0x10   | 4      | Parameter 1 | +
-| 0x14   | 4      | Parameter 2 |+
  
-There are two possible resource types0x00000008 for bitmap data and 0x00100000 for sound data.+For bitmap data, the following parameters are used:
  
-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 8. 
 +| 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 entriesfollowed by 8-bit paletted bitmap data.
  
 +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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki