I’m working on a RLE image compression tool (developed in java) for 1-bit images. I have started testing it and image size is reduced between 10-20% compared to Cabi encoder. Draw performance is similar but I’m working to improve it more. Hope to release a preview beta at the end of this week.
Maybe @JO3RI could be interested in work together on an “encoder/decoder standard”
The decoder is different (some parts are similar). It would be great that you add this function in your Arduboy2 library, anyway I think it would be better to release a unified drawCompressed function.
I’d be interested in an early preview… It’s something I’ve also been prototyping. My approach is more tuned to the specific requirements of the Arduboy. Perhaps you could share a Google doc for feedback? Even discussing the header might be a simple start to collaboration? I think the main wins are applying simple masking (e.g. XOR) to minimise redundant information row-to-row. Are you familiar with the PNG filters?
Thanks for the interest! I will try to release a preview version as soon as possible.
I tested some pre-filters on test images (as PNG does) and I didn’t find any filter that improves the image in order to encode it. Do you have any sample of a 1-bit image improved with prefiltering? Thanks!