Datasheet
1001
SAM9263 [DATASHEET]
Atmel-6249N-ATARM-SAM9263-Datasheet_14-Mar-16
Figure 45-5. Resize Examples
45.3.4.2 Color Space Conversion
This module converts YCrCb or YUV pixels to RGB color space. Clipping is performed to ensure that the samples
value do not exceed the allowable range. The conversion matrix is defined below and is fully programmable:
Example of programmable value to convert YCrCb to RGB:
An example of programmable value to convert from YUV to RGB:
45.3.4.3 Memory Interface
Preview datapath contains a data formatter that converts 8:8:8 pixel to RGB 5:5:5 format compliant with 16-bit
format of the LCD controller. In general, when converting from a color channel with more bits to one with fewer
bits, formatter module discards the lower-order bits. Example: Converting from RGB 8:8:8 to RGB 5:6:5, it discards
the three LSBs from the red and blue channels, and two LSBs from the green channel. When grayscale mode is
enabled, two memory format are supported. One mode supports 2 pixels per word, and the other mode supports 1
pixel per word.
1280
1024
480
640
32/16 decimation
1280
1024
288
352
56/16 decimation
R
G
B
C
0
0 C
1
C
0
C
2
– C
3
–
C
0
C
4
0
YY
off
–
C
b
C
boff
–
C
r
C
roff
–
×=
R 1.164 Y 16–()⋅ 1.596 C
r
128–()⋅+=
G 1.164 Y 16–()0.813 C
r
128–()⋅– 0.392 C
b
128–()⋅–⋅=
B 1.164 Y 16–()⋅ 2.107 C
b
128–()⋅+=
RY1.596 V⋅+=
GY0.394 U⋅– 0.436 V⋅–=
BY2.032 U⋅+=
Table 45-8. Grayscale Memory Mapping Configuration for 12-bit Data
GS_MODE DATA[31:24] DATA[23:16] DATA[15:8] DATA[7:0]
0 P_0[11:4] P_0[3:0], 0000 P_1[11:4] P_1[3:0], 0000
1 P_0[11:4] P_0[3:0], 0000 0 0