Coder Social home page Coder Social logo

Comments (6)

joedrago avatar joedrago commented on July 20, 2024

My YUV<->RGB conversion is very likely incomplete on some of those MatrixCoefficients cases, and in the subset that depend on the TransferCharacteristics, they might also be wrong. That said, I believe most of the most commonly used paths are correct, and I think typical YUV<->RGB conversion does not temporarily linearize with the transfer function.

I'll mark this issue as "help wanted" in case someone wants to contribute solutions to some of the more interesting combinations. Long term, I'd prefer libyuv to support all of these combinations (including 12bpc) and I can replace reformat.c entirely with that library.

from libavif.

ledyba-z avatar ledyba-z commented on July 20, 2024

Thank you for replying!
I will survey about other project. And if I can find some information or solutions, I will share them.

Long term, I'd prefer libyuv to support all of these combinations (including 12bpc) and I can replace reformat.c entirely with that library.

Yeah, I also really want to replace YUV <-> RGB conversion functions with libyuv also in our implementations...

from libavif.

joedrago avatar joedrago commented on July 20, 2024

As a note, you are never required to use libavif's YUV<->RGB ever, they are just provided for convenience. libavif can be used entirely with just the YUV planes in both directions, and you can convert to RGB completely independent of libavif.

from libavif.

ledyba-z avatar ledyba-z commented on July 20, 2024

Thanks for notice!

Yeah, we use Apple's vImage Frameworks for iPhones (of course, they are only available in iOS or macOS).

from libavif.

ledyba-z avatar ledyba-z commented on July 20, 2024

I found that H.273 (refered by AV1-spec) specify about conversion.

In a nutshell, just MatrixCoefficients affects a conversion matrix.

from libavif.

joedrago avatar joedrago commented on July 20, 2024

With your recent accepted PR, I'm going to close this. Thanks for the code.

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.