Decodes a QOI file to RGB8 (3 channels) or RGBA8 (4 channels).
decode_qoi :: (
data: [] u8,
max_pixels: s64 = DEFAULT_MAX_PIXELS
) -> (image: Image, ok: bool, error: string)
Decodes a QOI file to RGB8 (3 channels) or RGBA8 (4 channels).
Parameters
- data: [] u8
- max_pixels: s64
Returns
- image: Image
- ok: bool
- error: string