Difference between revisions of "Flipnote Files"

From DSiBrew
Jump to navigation Jump to search
m
Line 12: Line 12:
 
| 0x0004
 
| 0x0004
 
| 4
 
| 4
| File size without the header or the preview image
+
| Filesize - 0x7A0
 
|-
 
|-
 
| 0x0008
 
| 0x0008
Line 18: Line 18:
 
| Zeroes
 
| Zeroes
 
|-
 
|-
| 0x000C
+
| 0x000B
 
| 2
 
| 2
 
| # of frames
 
| # of frames
 +
|-
 +
| 0x000D
 +
| 2
 +
| Unknown
 
|-
 
|-
 
| 0x000E
 
| 0x000E
| 4
+
| 2
| Unknown - Flags? normal files are 24 00 00 00, locked files have 24 00 01 00 in this area
+
| Is locked?
 +
|-
 +
| 0x0010
 +
| 2
 +
| Unknown Flag
 
|-
 
|-
 
| 0x0012
 
| 0x0012

Revision as of 07:37, 15 August 2009

*.ppm FILES

Start Length Description
0x0000 4 Magic (should be PARA)
0x0004 4 Filesize - 0x7A0
0x0008 4 Zeroes
0x000B 2 # of frames
0x000D 2 Unknown
0x000E 2 Is locked?
0x0010 2 Unknown Flag
0x0012 2 Preview frame number ??
0x0014 22 Original author name (UCS-2)
0x002A 22 Author name (UCS-2)
0x0040 22 User name (UCS-2)
0x0056 8 Original author ID
0x005E 8 Author ID
0x0066 18 Original File-name - see notes on format
0x0078 18 File-name - see notes on format
0x008A 8 Mirrored author ID ??
0x0092 8 File name? - see notes on format
0x009A 6 Unknown - possibly date information
0x00A0 1536 Preview Bitmap (4 bits/pixel). This is stored in cells each cell is 8 pixels by 4 pixels, each cell uses 16 bytes, and are stored in a top left going right then down format

The file name seems to be stored in the file header 3 times:

  • Original file name 0x0066
  • Current file name 0x0078
  • Partial file name 0x0092

The file name is stored in 3 parts:

  • 3 hex bytes, the first byte's high nibble is not the same as the first byte of the file name
  • 13 bytes for the central part of the file name
  • 2 bytes for the last part of the file name.

For the file name : G35B20_0909841CDBEB1_002

  • First location: D3 5B 20 30 39 30 39 38 34 31 43 44 42 45 42 31 00 00
  • Second location: D3 5B 20 30 39 30 39 38 34 31 43 44 42 45 42 31 02 00
  • Last location: D3 5B 20 09 09 84 1C DB

Palette:

Hex Color
0x0 ??
0x1 Dark grey
0x2 White
0x3 Light grey
0x4 Light red
0x5 Dark red
0x6 Pink
0x7 Pure green
0x8 Pure blue
0x9 Purple
0xA Light blue
0xB Pure green
0xC Magenta
0xD Pure green
0xE Pure green
0xF Pure green