How to use the GPU to capture usb camera

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use the GPU to capture usb camera

1,224 Views
振杰司徒
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.

Labels (2)
0 Kudos
Reply
3 Replies

1,041 Views
振杰司徒
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 Kudos
Reply

1,041 Views
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 Kudos
Reply

1,041 Views
振杰司徒
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 Kudos
Reply