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.
| Pixel Bit | Packing on the link | Output beats during a line |
|---|---|---|
| RAW8 | 1 pixel per byte | every lane clock |
| RAW10 | 4 pixels in 5 bytes | 4 of 5 lane clocks |
| RAW12 | 2 pixels in 3 bytes | 2 of 3 lane clocks |
| RAW14 | 4 pixels in 7 bytes | 4 of 7 lane clocks |
| RAW16 | 1 pixel in 2 bytes, MSB first | 1 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.
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:
| Lanes | Line Length | Pixels per beat |
|---|---|---|
| 1, 2, 4, 6 | Any multiple of 4, up to 65,532 | 2, 4, 8, 12 |
| 8 | Any multiple of 8, up to 65,528 | 16 |
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.