A Quite OK Image (QOI) format encoder/decoder written in C++20.
- C++20
You can use CMake FetchContent to add this repo to your project.
include(FetchContent)
FetchContent_Declare(
qoipp
GIT_REPOSITORY https://github.com/mrizaln/qoipp
GIT_TAG main)
FetchContent_MakeAvailable(qoipp)
add_executable(main main.cpp)
target_link_libraries(main PRIVATE qoipp)
#include <qoipp.hpp>
int main()
{
qoipp::Image image = qoipp::decodeFromFile("./path/to/file.qoi");
// image.m_data is the raw image bytes decoded from the file
// image.m_desc is the image description (width/height/channels/colorspace)
// do somthing with the image data...
}
See example for more usage