[meta-xilinx] VCU usage on xilinx UZ3EG
Sami Md
sami.md.ko at gmail.com
Wed Jun 19 19:57:20 PDT 2019
Hi Mike,
Thanks for your reply.
We have now changed our camera.
We now get RGB raw data from the camera and we want to render this raw RGB
data using Mali 400 GPU on
Xilinx Ultrascale UZ3EG MpSoC.
I have a couple of questions:
1. We are getting the data in RBG888 format. can use use that data as it is
or do we need to conver to RGB888 format?
( we assume Mali 450 supports RGB888 and not RBG888)
2. What is the best way to render this raw RGB camera data on the screen.
can we use OpenCV? or write an OpenGLEs
application to convert the raw RGB data to the texture and render X11
window using glTexImage2D?
Best Regards
Sami
On Tue, Jun 4, 2019 at 10:06 PM Mike Looijmans <mike.looijmans at topic.nl>
wrote:
> Simplest way to reduce CPU usage is to use video-for-Linux directly (it's
> quite simple actually). This will give you access to the "raw" stream from
> the
> camera, which is usually in YUV or MJPEG format (OpenCV forcibly converts
> everything to RGB which makes for easy programming but horrible CPU
> consumption).
>
> If the USB camera provides MJPEG or H264/H265 data, you can indeed use the
> VCU
> to decode it. In theory.
>
> For YUV data, you can use the MALI GPU or the programmable logic to
> convert it
> to RGB (if you need RGB data to begin with...). The VCU isn't much use
> there.
>
> For further CPU reduction, you'll have to use something else than USB
> (e.g.
> mipi, dvi, hdmi, parallel data) directly into logic so the CPU isn't
> involved
> in the data transfer at all.
>
>
> On 04-06-19 06:48, Sami Md wrote:
> > Hi,
> >
> > We are using Xilinx UltraScale UZ3EG MpSoc
> >
> > we are using OpenCV to capture the video stream from USB Camera node
> /dev/video0
> >
> > but the CPU utilization is not good, it consumes around 80% of the CPU.
> >
> > To reduce the CPU consumption, we would like use the VCU available on
> UZ3EG.
> >
> > Kindly let us know if there are any sample applications to demonstrate
> the
> > working of VCU.
> >
> > any links would be helpful.
> >
> > Thanks and Best Regards
> >
> > Sami
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20190620/1413f98c/attachment.html>
More information about the meta-xilinx
mailing list