cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
162 Views
Registered: ‎03-31-2020

NV12 stream byte pattern on Frame buffer video stream

Jump to solution

Hi,

I am looking for NV12 stream byte patterns (stream got from m_axis_video port of Framebuffer read, which reads stream from VCU decoder).  However, as I refer from the FB IP, the YUV 4:2:0 format has the following pattern:

* For even lines, 2 pixel per clock

47:40

39:32

31:14

23:16

15:8

7:0

Zero padding

Zero padding

V0

Y1

U0

Y0

* For odd lines, 2 pixel per clock

47:40

39:32

31:14

23:16

15:8

7:0

Zero padding

Zero padding

Zero padding

Y1

Zero padding

Y0

 

* But when I check with ILA, and see the successive lines, the above pattern does not match. Could you please let me know where could I find the correct one?

My aim is at reading AXI4 stream to 2 xf::Mat objects (Y and UV, separately). Is there any handy way to solve this?

Screenshot from 2020-06-27 11-39-13.png

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
56 Views
Registered: ‎11-09-2015

Hi @peakpeak 

Some IPs are not doing the zero padding. They are still outputting data that the downstream IP should ignore. I guess this is what is happening here


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

View solution in original post

1 Reply
Highlighted
Moderator
Moderator
57 Views
Registered: ‎11-09-2015

Hi @peakpeak 

Some IPs are not doing the zero padding. They are still outputting data that the downstream IP should ignore. I guess this is what is happening here


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

View solution in original post