Quote:
Originally Posted by Retro1234
to split a large image up into tiles would take a lot of memory for a big image and a lot of processing time, doing it on a Amiga would be very slow.
|
it really doesn't need to use much more memory than the original image and the gathered tiles, and it is a linear-time problem, there is no complex calculation involved really. The bigger the image, the longer it will take, obviously, but an image twice as big should only take twice as long.
AMOS has some very useful image compression commands - PACK, SPACK and UNPACK. This apparently splits up an image into tile-like "strips" of optimal height, that it works out. I'm not exactly sure of the internal details, but as a problem it is not a million miles away from what we're suggesting.
If you use the right data structures, i think this can be made fast-enough for images several screens big.