Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Sai_E_
Beginner
72 Views

Can I use OpenCL/OpenGL instead of D3D9/11 on Windows

Hi all,

I looked at sample_multi_transcode. The GPU memory is managed using D3D9/D3D11.

Can I use OpenCL/OpenGL to manage memory?

I am not looking for any interop with DirectX - OpenCL/OpenGL.

Is there any sample/documentation which uses OpenCL/OpenGL?

--

Thanks

Sai

0 Kudos
2 Replies
Jiandong_Z_Intel
Employee
72 Views

Hi There,

MSDK sample sample_multi_transcode can do media functions (decode/vpp/encode), and OpenCL/OpenGL cannot do media codec, but OpenCL can do VPP.

sample_multi_transcode  can do  interop with OpenCL, you can refer it.

$ ./sample_multi_transcode_drm -hw -i::h264 test.h264 -o::h264 output.h264 -angle 180 -opencl

You also can refer the article: Media Server Studio with OpenCL

 

Thanks,

Zachary

Sai_E_
Beginner
72 Views

Hi Zachary,

Thank you for the reply.

Can I do Encode/Decode using OpenCL?

I am not looking for any rendering using a D3D Texture. Was thinking of getting the decoded/encoded data directly onto an OpenCL memory, which can be copied back to the host memory for further processing.Felt that the OpenCL interop with DirectX was more in line for rendering purposes.

--

Thanks in Advance

Sai

Reply