Update to the BMP/VGA file structure.
-----------------------------------------
4 bytes = BMP:
4 bytes read as an int = file size to read.
4 bytes = INF:
4 bytes = the amount of data to read. This contains frames and sizes of each frame in pixels.
This section is variable but you read each as a byte with a 00 seperator.
4 bytes = BIN:
4 bytes read as an int = data to read until we hit the next chunk.
1 byte = Compression type used (01 = RLE -- 02 = LZW)
4 bytes read as an int = data in this chunk after it's decompressed.
4 bytes = VGA:
4 bytes read as an int = data to read until we hit the next chunk.
1 byte = Compression type used (01 = RLE -- 02 = LZW)
4 bytes read as an int = data in this chunk after it's decompressed.
It's IMPORTANT to have your Editor of choice set to Little Endian!
__________________
I don't do Stupid. So don't ask.
Last edited by Jeff-Groves; 01-01-22 at 11:40 AM.
|