[Beignet] beignet opencl and libva

Weng, Chuanbo chuanbo.weng at intel.com
Tue Nov 18 18:40:43 PST 2014


Hi,
                What you need is the way to connect libva decode and ocl post-processing by
gpu buffer sharing. You just need to:

1.       Decode your video/picture to a VASurface.

2.       Use vaAcquireBufferHandle to get VASurface’s handle.

3.       Use clCreateBufferFromLibvaIntel/clCreateImageFromLibvaIntel to create

corresponding cl memory object from VASurface’s handle.

4.       Use ocl to do post-processing.

5.       Invoke vaReleaseBufferHandle to unlock the VASurface.

Libva supports vaAcquireBufferHandle/ vaReleaseBufferHandle since 1.4.0, so please
update your libva and intel-driver if necessary.

Thanks,
Chuanbo Weng

From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of azlinzhi at gmail.com
Sent: Tuesday, November 18, 2014 19:51
To: beignet
Subject: [Beignet] beignet opencl and libva


Hi:
I need help!
Do anyone have an example: using libva decode, then using ocl post-processing!

Thanks

发自我的小米手机
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20141119/bc5c892a/attachment.html>


More information about the Beignet mailing list