Coder Social home page Coder Social logo

Comments (8)

joedrago avatar joedrago commented on July 2, 2024

I see a lot more buzz for this in general than I expected. To do it right, I'll want to rework the plane flags to have a Y and a UV which will be a breaking change so I'll have to bump the major library version, but it is probably not a huge code change under the hood.

I might not get to it this week as I'm on vacation, but I'll add it soonish.

from libavif.

q3cpma avatar q3cpma commented on July 2, 2024

from libavif.

joedrago avatar joedrago commented on July 2, 2024

I got most of the way implementing this today, and then found out that rav1e isn't there yet, WRT monochrome support. I've opened a bug with them, and I'm going to postpone support for libavif monochrome until they support it. Hopefully it won't be too long.

xiph/rav1e#2190

from libavif.

tdaede avatar tdaede commented on July 2, 2024

FWIW rav1e implemented monochrome support in our most recent prerelease, if you'd like to try it out.

from libavif.

q3cpma avatar q3cpma commented on July 2, 2024

from libavif.

joedrago avatar joedrago commented on July 2, 2024

You can demand that any image is forced to be made grayscale via --yuv 400, but I'd be fine with altering any avifenc input code to detect that the YUV format should be 400 "by default". I'm pretty sure there is a "gray" color space in PNG so that might be easy, but I don't know about JPEG. Is there a grayscale flag somewhere in JPEG? (I'll have to look.)

from libavif.

q3cpma avatar q3cpma commented on July 2, 2024

from libavif.

vigneshvg avatar vigneshvg commented on July 2, 2024

libavif now supports monochrome. avifenc also uses yuv400 as the yuv format when dealing with grayscale PNG images:

avif->yuvFormat = AVIF_PIXEL_FORMAT_YUV400;

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.