Skip to content
/ qoipp Public

A Quite OK Image (QOI) format codec written in C++20

Notifications You must be signed in to change notification settings

mrizaln/qoipp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qoipp

A Quite OK Image (QOI) format encoder/decoder written in C++20.

Dependencies

  • C++20

Usage

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

About

A Quite OK Image (QOI) format codec written in C++20

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published