Quote:
Originally Posted by The_learner
Just wanted to know how the data (especially images) are compressed,
While inserting any uncompressed image into a rom, (The_Hex_Data)
it is simply done with the working with pixel (I know exactly how it works)
.
But for the compressed data, I couldnt get how it is inserted,
Can anyone help me with it....
|
Compression is a way of storing data that makes its size smaller. When you download files with 7zip or rar extensions, they are compressed too. In Pokemon games the only compressed things are images and music.
Example. Let's say you insert an image with 5 pixels that are all red. The hex for it would be, say,
0x10 0x10 0x10 0x10 0x10. (I just made it up to illustrate it).
When we compress it, we get:
0x5 0x10 (0x5 - because we've got 5 pixels and they're all the same 0x10 - because that's our red pixel)
So our data got smaller, yay.