MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

mw
MAME Fan
Reged: 01/01/07
Posts: 76
Send PM
Re: Got a decoding job for someone
09/04/08 09:12 PM


Some notes:

On the animated image ("ax3.raw"), all 24 frame headers seem to be 22 bytes long. The frames themselves are various lengths, the first being under 6k, the rest are all under 5k. The 21st header byte seems to be a compression type indicator, being either 15 for the simple byte based run-length encoding in frame 1, or 7 for the unknown format in frames 2-24.

Speculating that the idea is to predraw frame 1 in non-real time, then apply a faster or more computationally efficient algorithm to do the animation in real time. The CPU used may have some method to apply blocks of word-organized data quickly. The frame 2-24 data seems to be pre-fromatted, rather than compressed.

I noticed that frames 2-24 all have an even number of bytes, and there are a lot of "0"s and "FF"s in the data. The thought occurs that the data may be organized as 16-bit in those frames. I'm guessing that there is some means of indicating how many words (of the previous frame) to skip over, then another means of indicating how many words to overwrite with new data. And repeating until end of frame.

But it's not too clear what delimits the skipping and overwriting sections.

The compression in the "x3.raw" file seems to be a third type. Haven't spotted a pattern there, so far. It appears to be more densely compressed than method 1 or 2.







Entire thread
Subject Posted by Posted on
* Got a decoding job for someone Heihachi_73 07/07/08 11:14 PM
. * Back again, with color Heihachi_73  01/23/09 07:21 PM
. * Re: Got a decoding job for someone mw  10/01/08 05:46 AM
. * Re: Got a decoding job for someone mw  10/01/08 05:48 AM
. * Re: Got a decoding job for someone mw  02/26/09 08:11 PM
. * Awesome job there, congrats! Heihachi_73  02/26/09 09:10 PM
. * Re: Awesome job there, congrats! mw  02/26/09 10:25 PM
. * Re: Awesome job there, congrats! mw  02/27/09 07:36 AM
. * Re: Got a decoding job for someone Heihachi_73  10/16/08 07:32 PM
. * Re: Got a decoding job for someone mw  10/16/08 08:24 PM
. * Re: Got a decoding job for someone Heihachi_73  10/16/08 10:14 PM
. * Re: Got a decoding job for someone Mednafen  09/03/08 05:19 AM
. * Re: Got a decoding job for someone Heihachi_73  09/04/08 09:04 AM
. * Re: Got a decoding job for someone mw  09/03/08 08:10 AM
. * Re: Got a decoding job for someone Heihachi_73  09/04/08 09:25 AM
. * Re: Got a decoding job for someone mw  09/04/08 09:12 PM
. * Re: Unknown compression - LZW Heihachi_73  02/22/09 06:24 PM
. * Re: Got a decoding job for someone Mednafen  09/07/08 10:02 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 24 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4929