RPDev
March 13, 2022, 2:01am
1
Hi!
I'm happy to share librif, a C library to encode and read grayscale images. The library can encode images to raw data or in a compressed format.
I added Lua support too, unfortunately I can't test on device but I provided a Lua demo in the project.
Github: GitHub - risolvipro/librif: A lightweight library to encode and read grayscale images, with Playdate support.
Thank you!
6 Likes
NaOH
March 15, 2022, 5:35pm
2
This looks amazing! What's the license on this? Is it okay if I include this as a submodule in the 3D engine I'm working on?
RPDev
March 15, 2022, 6:27pm
3
Thank you!
Of course you can, it has no license but I'm going to add it (probably under MIT).
1 Like
RPDev
May 23, 2022, 4:49pm
4
Latest version includes some new features.
Faster read times
Grayscale image conversion to LCDBitmap
Drawing functions (position, scale, rotation)
Draw to screen or into another image
GitHub: GitHub - risolvipro/librif: A lightweight library to encode and read grayscale images, with Playdate support.
1 Like
matt
(gingerbeardman)
May 23, 2022, 8:00pm
5
Interested to know more about the speed ups.
RPDev
May 23, 2022, 8:37pm
6
I changed the memory layout for both compressed and raw images. A 4MB image is loaded in 0.62s on device, really fast. Loading times of my game are acceptable now
1 Like