Maximizing Compression of Apple II Hi-Res Images

(deater.net)

25 points | by deater 6 days ago ago

4 comments

  • Dwedit a day ago ago

    When you talk about maximizing compression, you usually move from simple binary data to predictors.

    A predictor is where you look at pixel above, and pixel to the left, and instead of coding a raw pixel value, you sort the values by how likely they are for the given "above" and "left" values. Most likely value becomes 0, second most likely becomes 1, etc... This changes the image into a different image where you have more 0 values than others. So you can encode the data as "number of 0s", like RLE, but with the zero count encoded in a variable-length way.

  • kazinator a day ago ago

    > So currently you'd need to have 4 images before it is a net win.

    That's from an external storage perspective (fitting more images onto a floppy, which is, IIRC around 140 Kb).

    You are typically only going to be loading one image at a time. So if you save an additional 100 bytes, using more than 100 bytes of extra code, it's not a win from a RAM point of view.

    • __patchbit__ 18 hours ago ago

      The 256 bytes that encode C64's `A mind is born' demo

         https://youtu.be/sWblpsLZ-O8
      
      or the `quad core' demo

         https://youtu.be/XlUcjzjVNlg
      
      should those techniques pack AI model simulator images for hexapod robotics down at the supervisor binary interface layer, do the demoscene folks get to work catergories in AI and Robotics for `new' competition?
  • ajross a day ago ago

    Somewhat disappointing. The tl;dr is that the author uses an off-the-shelf 6502 compression library and just de-interlaces the Hi-Res framebuffer to improve spacial locality.

    The reasoning behind the oddball framebuffer layout is handwaved away with "you can probably blame Woz for this" and "possibly to save a few chips on the motherboard".

    Well, yes, to both. And the Apple II scan hardware is an absolute masterpiece of the era (surpassed only, IMHO, by the Disk ][ card he invented a year later). That's what we should be talking about.