AXG74 ... my personal AMIGA computer related website
I´m back in AMIGA development for years of abstinence. With
a modern toolchain, existing software from the internet and also
own software developments (winUAE, vasm, aseprite, tiled)
only classic AMIGA assembler development
bmp2raw ... graphics cross-development tool .................
this is a small comandline tool for windows to convert windows-bitmap image-files (only uncompressed)
into the amiga-specific bitplane format as binary data. Normal bitplane mode
and also the rawblit-modulo format is supported. Only 16 or 32 color images are supported.
bmp2raw.exe [source bmp-file] [target output-file] [number of colors (16 or 32)] [raw or rawblit]
example: bmp2raw.exe pic.bmp pic.raw 16 raw <==>
converts a 16-color-picture to normal bitplane format.
example: bmp2raw.exe pic.bmp pic.raw 32 raw <==>
converts a 32-color-picture to normal bitplane format.
example: bmp2raw.exe pic.bmp pic.raw 16 rawblit <==>
converts a 16-color-picture to rawblit-modulo format.
The binary output-file has the following structure.
Offset 00 ... number of colors (16 or 32)
Offset 02 ... picture width in bytes
Offset 04 ... picture height in lines/pixel
Offset 06 ... color values as words (16 or 32 entries)
Offset xx ... here starts the bitmap-data
in normal raw-mode a whole bitplane is stored after each other.
Let´s say a normal AMIGA-Screen is 320 x 256 pixel, this means the first 10240 bytes contains data of the first bitplane.
At offset 10241 begins the data for second bitplane, and so on, until reached the fith bitplane.
in rawblit-mode the data of the first line of the first bitplane is stored, then the first line of the second bitplane, and so on.
40 bytes 1st bitplane (a whole line)
40 bytes 2nd bitplane (a whole line)
40 bytes 3rd bitplane (a whole line)
40 bytes 4th bitplane (a whole line)
The advantage of this storage format: we can copy all bitplanes with the blitter-customchip in one step.