avoid vpu-cpu-vpu memory copy on GStreamer->opencl pipeline on i.mx6

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

avoid vpu-cpu-vpu memory copy on GStreamer->opencl pipeline on i.mx6

903 次查看
korabelnikov
Contributor III

We use Gstreamer to retrieve and decode video frame, then we use opencl to perform heavy calculations on it.

 

Now we are copy frame from gstreamer's appsink to cpu, then copy it to gpu(opencl). 

 

some old unofficial sources says we can  avoid such copy (at least to gpu(opengl)). 

As for 2021, is it working?

korabelnikov_0-1630606892624.png

src https://elinux.org/images/5/53/Zero-copy_video_streaming.pdf

 

标签 (4)
0 项奖励
回复
2 回复数

893 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello korabelnikov,

 

The MX6 has a Opencl that support 1.1v, there is no API that call VPU-CPU-VPU, so there is no function to gstreamer to run any opencl pipeline.

Regards

0 项奖励
回复

886 次查看
korabelnikov
Contributor III

thank you for the answer.

it's not always so. As instance OpenCL is 1.2 on imx6qm 

sudo ./clinfo

>>>>>>>> ./clinfo Starting...

Available platforms: 1

Platform ID: 0
CL_PLATFORM_NAME: Vivante OpenCL Platform
CL_PLATFORM_PROFILE: FULL_PROFILE
CL_PLATFORM_VERSION: OpenCL 1.2 V6.4.3.p1.305572
CL_PLATFORM_VENDOR: Vivante Corporation
CL_PLATFORM_EXTENSIONS: cl_khr_icd

 

0 项奖励
回复