Brian-ED/rayed-bqn

missing more Image representation

Closed this issue · 3 comments

The only supported image representation supported (in a yet to be committed rayed-bqn) is 3d arrays with one dimension being length 4 for the rgba colors. There are multiple formats that can be supported by raylib, and it'd be lovely to support as many as possible.

List:
uncompressed_grayscale
uncompressed_gray_alpha
uncompressed_r5g6b5
uncompressed_r8g8b8
uncompressed_r5g5b5a1
uncompressed_r4g4b4a4
uncompressed_r8g8b8a8
uncompressed_r32
uncompressed_r32g32b32
uncompressed_r32g32b32a32
compressed_dxt1_rgb
compressed_dxt1_rgba
compressed_dxt3_rgba
compressed_dxt5_rgba
compressed_etc1_rgb
compressed_etc2_rgb
compressed_etc2_eac_rgba
compressed_pvrt_rgb
compressed_pvrt_rgba
compressed_astc_4x4_rgba
compressed_astc_8x8_rgba

it is now committed btw, quite a bit ago actually

OOoo the image to bqn array converter could use the best representation for the data! meaning i can compress an image to for example grayscale if the image only contains 255 and 0, or i can compress rgb without alpha if all of alpha is 256 :D

Here i've been working on an image converter and i've made it so it can convert to any of the uncompressed formats. can still be improved since it can't represent r5 g6 b5 in 2 bytes of memory each pixel, it currently uses 3. I do have a plan on fixing that though

ReFormat ← {oldFormatnewFormat𝕊image: