How to use the GPU to capture usb camera

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to use the GPU to capture usb camera

1,144件の閲覧回数
振杰司徒
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 返答(返信)

961件の閲覧回数
振杰司徒
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 件の賞賛
返信

961件の閲覧回数
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 件の賞賛
返信

961件の閲覧回数
振杰司徒
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 件の賞賛
返信