GithubHelp home page GithubHelp logo

Comments (4)

p0nce avatar p0nce commented on September 28, 2024

Mmmm we can store that as flags into the Image, in order to stay self-contained:
So it is 2 bits for extra "gap" pixels, 2 bits for multiplicity, and 3 for scanline alignment.
The only flag combination that ensures to be gapless is 0.

from gamut.

p0nce avatar p0nce commented on September 28, 2024

Basically we can use whatever the decoder can already provide as automatic conversion (for example, stb_image can force to 1/2/3/4 channels and do 8-bit/10-bit conversion at the row level), and then support other flags with convertTo, which is itself trained to see cases that needs nothing to do.

What we cannot do for now is force "gapless" contraint.

from gamut.

p0nce avatar p0nce commented on September 28, 2024
  • QOI and QOIX loader can be more efficient when decoding 3 channels to rgba8, or 4 channels to rgb8
  • and QOI-plane can decode 1 to 2 and 2 to 1
  • in conversion, intermediate buffer should be stuffed in the bonusBytes
  • Force 8-bit, 16-bit, and 32-bit float loading with new LOAD_xxx flags. Though, only the PNG decoder will take advantage of this.
  • isGapless() function. A function to get all pixels in an ubyte[]
  • getters for various layout things

from gamut.

p0nce avatar p0nce commented on September 28, 2024

Basically works.

from gamut.

Related Issues (20)

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.