UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor plant1976
Visitor
313 Views
Registered: ‎10-25-2013

TPG YUV 4:2:2 to Video Frame Buffer

Hello,

I'm trying to design a simple FPGA with a TPG Video IP and a Video Frame Buffer.

The TPG is connected directly to Video Frame Buffer without Video Timing Controller.

When I try to configure the TPG and Video Frame Buffer to RGB888 anything works perfectly and I am to acquire images using the following command:

media-ctl -d /dev/media0 -V '"b0070000.v_tpg":0 [fmt:RGB888_1X24/1920x1080]'
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat='RGB3'yavta -n 3 -c10 -f RGB24 -s 1920x1080 --skip 7 -F /dev/video0

When I try to set TPG and Video Frame Buffer to YUV 4:2:2 and acquire the images with following command, I am not able to acquire any images:

media-ctl -d /dev/media0 -V '"b0070000.v_tpg":0 [fmt:UYVY/1920x1080]'
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat='YUYV'
yavta -n 3 -c10 -f YUYV -s 1920x1080 --skip 7 -F /dev/video0

The console output is:

Device /dev/video0 opened.
Device `video_cap output 0' on `platform:video_cap:0' is a video output (without mplanes) device.
Video format set: YUYV (56595559) 1920x1080 field none, 1 planes:
* Stride 3840, buffer size 4147200
Video format: YUYV (56595559) 1920x1080 field none, 1 planes:
* Stride 3840, buffer size 4147200
3 buffers requested.
length: 1 offset: 3901633920 timestamp type/source: mono/EoF
Buffer 0/0 mapped at address 0x7fb3f3b000.
length: 1 offset: 3901633920 timestamp type/source: mono/EoF
Buffer 1/0 mapped at address 0x7fb3b46000.
length: 1 offset: 3901633920 timestamp type/source: mono/EoF
Buffer 2/0 mapped at address 0x7fb3751000.

 

 

Do you have any idea? do I have to put any video IP (like AXI4-Stream Subset Converter) between TPG to Video Frame Buffer when I use YUV422 configuration?

Thank you for your help.

Regards 

 

 

 

Tags (1)
0 Kudos
2 Replies
Moderator
Moderator
152 Views
Registered: ‎11-09-2015

Re: TPG YUV 4:2:2 to Video Frame Buffer

HI @plant1976 ,

This is a basic question but did you enable 422 in the frame buffer IP?

Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Moderator
Moderator
105 Views
Registered: ‎11-09-2015

Re: TPG YUV 4:2:2 to Video Frame Buffer

Hi @plant1976 ,

Do you have any updates on this?

If your question is answered or your issue is solved, please kindly mark the response which helped as solution (click on "Accept as solution" button below the reply)

If this is not solved/answered, please reply in the topic giving more information on your current status.

Thanks and Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos