Hi All,
I would like to ask a question on the precise definition of “pixel” in VPFE:
According to 643x VPFE user’s guide, document SPRU977A, page 25, Figure 6. - BT.656 Mode Data Format in SDRAM:
Four bytes (4 × 8bits) data are placed in the SDRAM in the following arrangement:
34-31 |
Pixel3 (Y1/Cr0) |
16-23 |
Pixel2 (Cr0/Y1) |
8-15 |
Pixel1 (Y0/Cb0) |
0-7 |
Pixel0 (Cb0/Y0) |
There are some ambiguities on the definition of “pixel” here. Inferring from this table we see that every 8 bits are counted as a pixel, but this definition of “pixel” is somehow a mixed, heterogeneous type. This is because:
1. Although every “pixel” contains luminance (Y) portion, it also contains either of the two types of chrominance (blue or red).
2. No single 8-bit “pixel” contains the complete information to form a “geometric pixel” in the usual sense such as on a picture.
This might bring a further confusion:
According to BT.656 standard, in each line there are, counting only active samples,
1. 720 luminance samples
2. 360 Cb samples
3. 360 Cr samples
But it seems that by the abovementioned “nonconventional” definition, there should be 720 + 360 + 360 = 1440 pixels per line.
Is this true?
Another question is on the exact arrangement of bits within each 8-bit data. Referring to the table above:
|
From low (LSB) to high (MSB) |
34-31 |
Y1 (4 5 6 7) Cr0 (4 5 6 7) |
16-23 |
Cr0 (0 1 2 3) Y1 (0 1 2 3) |
8-15 |
Y0 (4 5 6 7) Cb0 (4 5 6 7) |
0-7 |
Cb0 (0 1 2 3) Y0 (0 1 2 3) |
Or
|
From low (LSB) to high (MSB) |
34-31 |
Cr0 (4 5 6 7) Y1 (4 5 6 7) |
16-23 |
Y1 (0 1 2 3) Cr0 (0 1 2 3) |
8-15 |
Cb0 (4 5 6 7) Y0 (4 5 6 7) |
0-7 |
Y0 (0 1 2 3) Cb0 (0 1 2 3) |
Which of them is correct? Or none, and the actual arrangement is somehow otherwise?
I would appreciate any one who would give his opinion.
Zheng