Comments (4)
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.
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.
- 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.
Basically works.
from gamut.
Related Issues (20)
- Implement premultiplied alpha in PixelType HOT 11
- GIF support HOT 2
- This image not decodable anymore HOT 4
- Difference of RGBA8 to SDL’s RGBA8888 HOT 7
- Layered images HOT 1
- GIF Exported images seems to never be animated HOT 1
- Bad GIF colors, not sure if input or output HOT 2
- GIF decoder not 100% complete
- Documentation issues : flags not that simple HOT 5
- Meta-data system
- Introduce a port of LZAV HOT 2
- Unpredictable GIF saving behaviour HOT 7
- Webp support HOT 2
- can't setLayout twice HOT 9
- Throwing between in GC programs is annoying
- BMP support
- JPEG-encoded TIFF support HOT 1
- JPEG XL decoding support HOT 2
- JPEG XL ISOBMFF
- Is this an issue (JPEG) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gamut.