Giter Site home page Giter Site logo

qoi's Introduction

QOI - The “Quite OK Image” format for fast, lossless image compression

package and small utilities in pure Go, quite OK implementation

See qoi.h for the documentation.

More info at https://phoboslab.org/log/2021/11/qoi-fast-lossless-image-compression

Performance

Performance is currently around half C version (optimized at -O3)

$ ./qoibench ../../../images/wallpaper/
Encoding: QOI  184ms - PNG 1382ms - Decoding: QOI   62ms PNG  178ms - 1492858.png
Encoding: QOI  180ms - PNG 1389ms - Decoding: QOI   51ms PNG  156ms - 1492868.png
Encoding: QOI  152ms - PNG  863ms - Decoding: QOI   30ms PNG   84ms - 1492869.png
Encoding: QOI  204ms - PNG 1147ms - Decoding: QOI   71ms PNG  176ms - 1492893.png
Encoding: QOI  316ms - PNG 2697ms - Decoding: QOI  103ms PNG  274ms - EwZDbLoWQAEskRq.png
Encoding: QOI  194ms - PNG 1524ms - Decoding: QOI   62ms PNG  156ms - Hy23XKX.png
Encoding: QOI   43ms - PNG  301ms - Decoding: QOI   15ms PNG   34ms - Screenshot_2021-11-16_13-57-47.png
Encoding: QOI  180ms - PNG 1078ms - Decoding: QOI   45ms PNG  134ms - car.png
$ ./qoibench ../../../images/kodak/
Encoding: QOI   19ms - PNG   69ms - Decoding: QOI    6ms PNG   17ms - kodim01.png
Encoding: QOI   15ms - PNG   96ms - Decoding: QOI    5ms PNG   14ms - kodim02.png
Encoding: QOI   15ms - PNG  143ms - Decoding: QOI    5ms PNG   13ms - kodim03.png
Encoding: QOI   16ms - PNG   87ms - Decoding: QOI    5ms PNG   15ms - kodim04.png
Encoding: QOI   17ms - PNG   68ms - Decoding: QOI    6ms PNG   15ms - kodim05.png
Encoding: QOI   15ms - PNG   87ms - Decoding: QOI    7ms PNG   13ms - kodim06.png
Encoding: QOI   21ms - PNG  111ms - Decoding: QOI    5ms PNG   16ms - kodim07.png
Encoding: QOI   18ms - PNG   67ms - Decoding: QOI    6ms PNG   19ms - kodim08.png
Encoding: QOI   16ms - PNG  100ms - Decoding: QOI    6ms PNG   19ms - kodim09.png
Encoding: QOI   16ms - PNG   93ms - Decoding: QOI    5ms PNG   15ms - kodim10.png
Encoding: QOI   16ms - PNG   93ms - Decoding: QOI    6ms PNG   16ms - kodim11.png
Encoding: QOI   16ms - PNG  110ms - Decoding: QOI    5ms PNG   15ms - kodim12.png

Example Usage

  • cmd/qoiconv converts between png <> qoi
  • cmd/qoibench bench the en/decoding vs. golang png implementation

qoi's People

Contributors

splizard avatar xfmoulet avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.