View Single Post
Old 11 June 2016, 22:08   #14
Mrs Beanbag
Glastonbridge Software
 
Mrs Beanbag's Avatar
 
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
Quote:
Originally Posted by Retro1234 View Post
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.
Mrs Beanbag is offline  
 
Page generated in 0.04397 seconds with 11 queries