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-boun...@lists.freedesktop.org] On Behalf Of 
azlin...@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

发自我的小米手机
_______________________________________________
Beignet mailing list
Beignet@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to