Jump to content
  • 0

Zybo Z7 Pcam 5C Demo - MIPI CSI-2 Receiver Out


BMC99

Question

Hello,
Looking to get a bit more clarity about the data stream coming out of the provided open-source MIPI CSI 2 Receiver block in the Zybo Z7 PCAM 5C vivado demo project.
The project indicates that the block outputs 4 10 bit pixels per stream. 
How is the stream data from each frame organized?
Let's say I have a 1080p frame.
Will the block output pixels located at horizontal line 1, vertical lines 1-4 with the first stream, then horizontal line 1, vertical lines 5-8 with the second stream, 
all the way to horizontal line 1, vertical lines 1917-1920 and then move to the second line and output horizontal line 2, vertical lines 1-4?
Or is it organized differently?
Thanks

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

CSI-2 can carry different data types, but uncompressed video data rarely deviates from raster order in the industry. The PCAM 5C is configured for RAW10 format. Each pixel (bayer filtered) takes up 10 bits. Pixel are transmitted consecutively for a complete horizontal line. Horizontal lines are transmitted consecutively for a complete frame. The horizontal resolution is the number of pixels in a line. The vertical resolution is the number of lines in a frame. This is how the CSI-2 Receiver block gets data from the PCAM 5C and outputs on AXI-Stream all the same.

There can be exceptions for interlaced frames, compressed data like JPEG, or status information. None of these are in use in our demo.

Link to comment
Share on other sites

  • 0
On 2/2/2022 at 7:20 AM, elodg said:

CSI-2 can carry different data types, but uncompressed video data rarely deviates from raster order in the industry. The PCAM 5C is configured for RAW10 format. Each pixel (bayer filtered) takes up 10 bits. Pixel are transmitted consecutively for a complete horizontal line. Horizontal lines are transmitted consecutively for a complete frame. The horizontal resolution is the number of pixels in a line. The vertical resolution is the number of lines in a frame. This is how the CSI-2 Receiver block gets data from the PCAM 5C and outputs on AXI-Stream all the same.

There can be exceptions for interlaced frames, compressed data like JPEG, or status information. None of these are in use in our demo.

OK thanks for the info.

If I can ask for one other clarification:

The CSI-2 receiver block outputs 4 pixels as a 40 bit std logic vector.

Like you said pixels are transmitted consecutively for a complete horizontal line from pixel 1 to say pixel 1920. So the first write would contain pixels 1 to 4.

Can I assume bits 39 to 36 are pixel 1 and bits 3 to 0 are pixel 4?

Thanks.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...