Atmel Evaluation Kit AT91SAM9G25-EK AT91SAM9G25-EK Data Sheet
Product codes
AT91SAM9G25-EK
999
SAM9G25 [DATASHEET]
11032D–ATARM–10-Mar-2014
Figure 44-5. Resize Examples
44.4.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:
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:
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
Y
Y
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
–
(
)
⋅
+
=
R
Y
1.596 V
⋅
+
=
G
Y
0.394 U
⋅
–
0.436 V
⋅
–
=
B
Y
2.032 U
⋅
+
=