Skip to content

Morozov-5F/qoif-d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QOIF-D

Implementation of the "Quite OK Image format" in D Language. The implementation is based off the QOIF specification and does not rely on the reference en-/decoder.

The goal of this library is to add a simple and easy-to-use way for encoding or decoding QOIF images that could be used in D

Usage

Decoding is done using the encode function:

auto originalImage = cast(ubyte[]) read("test_data/kodim10.qoi");
QoifImage decoded = decode(originalImage);

Encoding is done in a similar fashion:

auto imageData = [Pixel(255, 0, 0), Pixel(0, 255, 0), Pixel(0, 0, 255), Pixel(255, 255, 255)];
auto encodedImage = encode(image, 2, 2);

About

Encoder and decoder of QOIF images written in D

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages