How to use the GPU to capture usb camera

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

How to use the GPU to capture usb camera

1,233 次查看
振杰司徒
Contributor I

Board : IMX6Q

System: Linux

Kernel: 3.14

I use the V4L2 to read the usb camera, and then displayed on the qt with cpu, although successful, but it is not smooth.

Therefore, I want to use the GPU to read and display the usb camera. Is there any information or examples?

thank you very much.

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

1,050 次查看
振杰司徒
Contributor I

This is my related functionality with qt, but consuming 120ms with QPiamap :: loadfromData and 148ms with QPixmap ::

save. Is there a more optimized way?

pic.png

0 项奖励
回复

1,050 次查看
igorpadykov
NXP Employee
NXP Employee

Hi  振杰

please look at sect.13.2 Unit Test for gpu tests atatched Linux Manual.

Seems for camera better to use gstreamer, it is described in Linux Guide

sect.7 Multimedia, use nxp bsps described on

http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i....

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,050 次查看
振杰司徒
Contributor I

thanks for your reply

But I'm worried I can not fully implement my function on a 720P camera by using gstreamer. Because I not only need to

display, but also saved as pictures and udp transmission.

0 项奖励
回复