10-/12-/14-/16-bit monochrome and Bayer CFA

Table 1. Beginning-of-line memory layout when ImageFlipX = OFF
Byte offset

n-bit => n-bit

n = {10, 12, 14, 16}

10-bit => 16-bit 12-bit => 16-bit 14-bit => 16-bit
0

Bit[3:0]: IIN[4:1]

Bit[5:4]: DIN[2:1]

Bit[7:6]: 00b

Bit[5:0]: 000000b

Bit[7:6]: IIN[2:1]

Bit[3:0]: 0000b

Bit[7:4]: IIN[4:1]

Bit[1:0]: 00b

Bit[5:2]: IIN[4:1]

Bit[7:6]: DIN[2:1]

1 00h

Bit[1:0]: IIN[4:3]

Bit[3:2]: DIN[2:1]

Bit[7:4]: 0000b

Bit[1:0]: DIN[2:1]

Bit[7:2]: 000000b

00h
2 Pixel #2: LSB Pixel #2 <<6: LSB Pixel #2 <<4: LSB Pixel #2 <<2: LSB
3 Pixel #2: MSB Pixel #2 <<6: MSB Pixel #2 <<4: MSB Pixel #2 <<2: MSB
Table 2. End-of-line memory layout when ImageFlipX = ON
Byte offset

n-bit => n-bit

n = {10, 12, 14, 16}

10-bit => 16-bit 12-bit => 16-bit 14-bit => 16-bit
last-3 Pixel #2: LSB Pixel #2 <<6: LSB Pixel #2 <<4: LSB Pixel #2 <<2: LSB
last-2 Pixel #2: MSB Pixel #2 <<6: MSB Pixel #2 <<4: MSB Pixel #2 <<2: MSB
last-1

Bit[3:0]: IIN[4:1]

Bit[5:4]: DIN[2:1]

Bit[7:6]: 00b

Bit[5:0]: 000000b

Bit[7:6]: IIN[2:1]

Bit[3:0]: 0000b

Bit[7:4]: IIN[4:1]

Bit[1:0]: 00b

Bit[5:2]: IIN[4:1]

Bit[7:6]: DIN[2:1]

last 00h

Bit[1:0]: IIN[4:3]

Bit[3:2]: DIN[2:1]

Bit[7:4]: 0000b

Bit[1:0]: DIN[2:1]

Bit[7:2]: 000000b

00h
Note: last= address offset of the last byte of the rightmost active pixel of the line