Comments (7)
I decided to not leave a big comment in that the default is lossless for both color and alpha anyway, and people can decide for themselves which artifacts they want to live with.
from libavif.
libavif spends 0 bytes on alpha for a fully opaque alpha channel, and I think the alpha payload on a uniform lossless alpha channel is maybe 50 bytes (top-of-head).
My opinion is any other alpha channel (masks, gradients, vignettes, etc) are a huge mistake to encode lossy as you will see the artifacts of it in the oddest ways, but as long as the alpha QP defaults are lossless, I don't mind exposing an option to users.
from libavif.
Well, what could be done, is that you add a codec flag SUPPORTS_LOSSLESS. And based on that flag you select the available codec if you want to use lossless.
from libavif.
I understand that libavif always use highest quality (~lossless) for alpha channel.
However one of our users observed that HEIC uses various levels of quality also for the alpha channel, so in some circumstances HEIC achieves smaller files (lower alpha quality):
https://www.reddit.com/r/AV1/comments/fccpge/avif_alpha_compression/
Some people might believe that HEIC compress significantly better.
What do you think, would it be good to have separate Quantizer settings for the alpha channel?
from libavif.
I agree, the default for alpha must remain lossless.
How it is going to look like?
int maxAlphaQuantizer;
in avifEncoder?
from libavif.
from libavif.
I added these today.
from libavif.
Related Issues (20)
- ci-windows failure "unknown file: error: SEH exception with code 0xc000001d thrown in the test body" HOT 4
- Sample HDR AVIF decoded to JPG shows incorrect colors HOT 8
- How to build a dynamic library that statically links all dependencies? HOT 1
- Ignore and skip FullBoxes with an unrecognized version
- How to build the.A use of iOS platform? HOT 2
- Make libyuv package-friendly dependency HOT 2
- Roll YCgCo-R out HOT 1
- Add Homebrew install instructions and avifdec/avifenc examples to README HOT 6
- autoconf etc. HOT 1
- avifImageRGBToYUV should set color space to default values HOT 2
- Findrav1e.cmake ignores library dependencies listed in the generated pkgconfig file HOT 5
- [Function Request] avifenc supports svt and rav1e encoder options key-value HOT 2
- MSYS/MinGW32: Linking error, undefined references to Nt file functions HOT 2
- Noticeable color shift HOT 6
- Does CVE-2024-1580 affect libavif with dav1d decoder? HOT 1
- Static build issues on MSYS2 HOT 4
- sharpyuv conversion failed HOT 2
- libavif.a should not be a combined archive library HOT 5
- Not able to build static build on amazon linux 2023 HOT 9
- GIF encodes with wrong frame rate HOT 14
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 libavif.