Giter Site home page Giter Site logo

Comments (5)

i-rinat avatar i-rinat commented on September 18, 2024

VDPAU allows the caller to create and destroy surfaces whenever he wishes.

VDPAU documentation says, "The client application is responsible for: <...> Surface management (e.g. H.264 DPB processing, display re-ordering)"

So it should be perfectly valid to create a new surface per each decoded frame and then destroy it when it is no longer needed.

I doubt that. That code does nothing for DPB management, it throws video surfaces away after their usage.

I've implemented formal fix (https://github.com/i-rinat/libvdpau-va-gl/tree/dev), but it does not work correctly, results are garbled. To make this really work, I need to track somehow surfaces that should be in DPB and avoid reusing them until they leave DPB. But that's application task according to VDPAU spec.

from libvdpau-va-gl.

elenril avatar elenril commented on September 18, 2024

I fully agree that managing the DPB must be done by the application. In my case the surfaces should only be destroyed when they are not in the DPB anymore, so I don't yet understand why is the image corrupted.

In any case, thank you for the fix, I'll try to investigate why it doesn't fully fix the problem.

from libvdpau-va-gl.

elenril avatar elenril commented on September 18, 2024

Seems you're just forgetting to set rt_idx on the vdpau surfaces. With commit 4d4b766 from my tree it works perfectly.

from libvdpau-va-gl.

i-rinat avatar i-rinat commented on September 18, 2024

Seems you're just forgetting to set rt_idx on the vdpau surfaces

Oops. :) Now it works good. Thank you for the fix.

from libvdpau-va-gl.

i-rinat avatar i-rinat commented on September 18, 2024

You just saved me couple of weeks. I was going to implement own DPB tracking.

from libvdpau-va-gl.

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.