Pixel Unpacking and Alignment

Introduction

The pixel data processor is capable of unpacking and aligning 10-bit, 12-bit, and 14-bit pixel component data to 16-bit data containers.

The unpacking and the alignment operations are user-configurable through the UnpackingMode GenApi feature.

On PC1628 Grablink Duo, two options are available:

Lsb: Unpacking and alignment to lsb (Default setting))
Msb: Unpacking and alignment to msb

Unpacking and alignment to lsb

The significant bits of the pixel component data are aligned to the least significant bit of the data container. Padding '0' bits are put as necessary in the most significant bits to reach the next 8-bit boundary.

10-bit pixels: 0000 00<pp pppp pppp>
12-bit pixels: 0000 <pppp pppp pppp>
14-bit pixels: 00<pp pppp pppp pppp>
NOTE: Unpacking to lsb doesn't modify the pixel component value.
NOTE: Unpacking 10-bit, 12-bit, and 14-bit pixel components increases the amount of data by 160%, 133%, and 114% respectively!
NOTE: Unpacking 8-bit and 16-bit pixel components is a neutral operation. The size of the data container is unchanged (one byte for 8-bit pixel components; two bytes for 16-bit pixel components) and the data bits are not modified.

Unpacking and alignment to msb

The significant bits of the pixel component data are aligned to the most significant bit of the data container. Padding '0' bits are put as necessary in the least significant bits to reach the next 8-bit boundary.

10-bit pixels: <pppp pppp pp>00 0000
12-bit pixels: <pppp pppp pppp> 0000
14-bit pixels: <pppp pppp pppp pp>00
NOTE: Unpacking 10-bit, 12-bit, and 14-bit pixel components to msb multiplies the pixel component value by 64, 16, and 4 respectively.
NOTE: Unpacking 10-bit, 12-bit, and 14-bit pixel components increases the amount of data by 160%, 133%, and 114% respectively!
NOTE: Unpacking 8-bit and 16-bit pixel components is a neutral operation. The size of the data container is unchanged (one byte for 8-bit pixel components; two bytes for 16-bit pixel components) and the data bits are not modified.