[Libva] Concurrent decoding/rendering in the same va context?
jonathan.bian at intel.com
Tue Oct 2 10:13:20 PDT 2012
It should work.
From: libva-bounces+jonathan.bian=intel.com at lists.freedesktop.org [mailto:libva-bounces+jonathan.bian=intel.com at lists.freedesktop.org] On Behalf Of Pawel Osciak
Sent: Tuesday, October 02, 2012 7:57 AM
To: Beauchesne, Gwenole; libva at lists.freedesktop.org
Subject: [Libva] Concurrent decoding/rendering in the same va context?
I'm experimenting with decode parallelization on one VA context. What I'm trying to do is overlapping below sequences on two threads:
vaRenderPicture() a few times
Thread 2 (gets fired after Decode() finishes on thread 1):
vaPutSurface() // (to an XPixmap)
The overlap happens in a way that it is possible for Decode() for frame n on thread 1 to begin while Render() is still running for frame n-1. Thus, it's possible for a surface that is being vaPutSurface() from to be used as reference in Decode() on the other thread, but it's not possible for two Decode() calls or two Render() calls to run concurrently.
Should this work? Has anyone got a similar setup to run successfully?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libva