This commit is contained in:
sillysagiri 2024-09-18 17:12:51 +07:00
parent aae0e4c97d
commit cfadc0314b

View File

@ -8,3 +8,9 @@ Usage: sillyimage <input image> <output image>
first and second 4 byte is image width and height.
the rest is raw argb15, no fancy compression or anything, just a simple raw data...
TODO:
- limit image dimension...using uint32 is like using a rocket launcher to swat a fly—why on earth i need an image that big?!
- error handling dont just assume everything will go perfectly! be ready for the unexpected!
- quantize color using predefined palette
- do compression, do i really need that?