View Single Post
Old 17 June 2017, 13:48   #9
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,265
Quote:
Originally Posted by NorthWay View Post
AFAIK (corrections welcome) both IFF and GIF store picture data on a line by line basis.
Colours are typically much more locally clustered, and this is also how JPEG (and others?) arrange pixel data to take advantage of local similarities.
I played a bit with this a while back and found that rearranging the data according to a Hilbert-curve gave better compression for simple images, but it wasn't much, maybe 20% on monochrome images at best, and with higher bit-depths the difference was not worth it.

The compression gain is definitely there, but it's too little and too cumbersome to be of practical use.
Leffmann is offline  
 
Page generated in 0.04708 seconds with 11 queries