Coder Social home page Coder Social logo

Comments (7)

joedrago avatar joedrago commented on July 2, 2024 3

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.

joedrago avatar joedrago commented on July 2, 2024 2

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.

cryptomilk avatar cryptomilk commented on July 2, 2024

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.

novomesk avatar novomesk commented on July 2, 2024

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.

novomesk avatar novomesk commented on July 2, 2024

I agree, the default for alpha must remain lossless.
How it is going to look like?
int maxAlphaQuantizer;
in avifEncoder?

from libavif.

joedrago avatar joedrago commented on July 2, 2024

from libavif.

joedrago avatar joedrago commented on July 2, 2024

I added these today.

56fa2bc

from libavif.

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.