NewLunarFire / png2snes

Generate CGRAM (Palette) and VRAM (Tiles and OAM) data from PNG files
GNU General Public License v3.0
20 stars 5 forks source link

When bitplanes is not specified, image outputs on 32000 bitplanes #8

Closed NewLunarFire closed 8 years ago

NewLunarFire commented 8 years ago
Assuming 8x8 background tiles
Assuming 8 bitplanes
Palette contains 255 colors
CGRAM section is 510 bytes long
Image size is 256x256, bit depth is 8
Tile count: 1024 (32x32)
Outputting on 32545 bitplanes
VRAM section is 266608640 bytes long
NewLunarFire commented 8 years ago

I left a variable uninitialized. Will be fixed in next commit.