Document ID
APT-DS-SLVS-RX-0001
Revision
2.1
IP version
3.4.1
Release date
November 2026
Chapter 2: Functional Description

2.5Pixel formats

The sensor packs pixels into bytes before sending them. Pixels wider than 8 bits send their top 8 bits as one byte each and bundle the remaining low bits of a small group into the bytes that follow. The core reverses this for every lane count and pixel depth.

Table 2-4.Pixel packing on the link and output beat rate during a line.
Pixel BitPacking on the linkOutput beats during a line
RAW81 pixel per byteevery lane clock
RAW104 pixels in 5 bytes4 of 5 lane clocks
RAW122 pixels in 3 bytes2 of 3 lane clocks
RAW144 pixels in 7 bytes4 of 7 lane clocks
RAW161 pixel in 2 bytes, MSB first1 of 2 lane clocks

Both outputs use the same format. A beat carries 2 x LANE_NUM pixels, each in its own 16-bit container. Container k occupies bits 16k+15 down to 16k and holds the k-th pixel of the beat, so container 0 is the earliest pixel. Pixels are MSB-justified: pixel bit Pixel Bit - 1 sits at container bit 15 and the unused low bits are 0. A RAW12 pixel therefore reads as its 12-bit value shifted left by 4, and software can treat every depth as 16-bit data.

one beat: m_axis_tdata / vid_data [63:0], 2 lanes = 4 pixelsP3latest6348P24732P13116P0earliest pixel15000000304123456789101115pixel bits [11:0], MSB at container bit 15zero fillcontainer 0, RAW12
Figure 2-3.Output beat of a 2-lane build and the 16-bit container of a RAW12 pixel.

2.5.1Line Length

LINE_LENGTH is the sensor’s pixels per line, for image lines and embedded data lines alike, and has to match the sensor mode:

Table 2-5.Line Length rule by lane count.
LanesLine LengthPixels per beat
1, 2, 4, 6Any multiple of 4, up to 65,5322, 4, 8, 12
8Any multiple of 8, up to 65,52816

A line that is not a whole number of beats ends on a partial beat. The pixels of the line are all there; the containers after the last pixel of that beat carry non-image data, so a consumer that needs a clean edge crops to the line width. At 8 lanes, Line Lengths that are a multiple of 4 but not of 8 are available as an NRE item.