English
Language : 

SAMA5D3_14 Datasheet, PDF (815/1840 Pages) ATMEL Corporation – ARM-based Embedded MPU
Figure 34-5. Resize Examples
1280
1024
32/16 decimation
640
480
1024
1280
56/16 decimation
352
288
34.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:
R
C0 0 C1
Y – Yoff
G = C0 –C2 –C3 × Cb – Cboff
B
C0 C4 0
Cr – Croff
Example of programmable value to convert YCrCb to RGB:
R = 1.164 ⋅ (Y – 16) + 1.596 ⋅ (Cr – 128)
G = 1.164 ⋅ (Y – 16) – 0.813 ⋅ (Cr – 128) – 0.392 ⋅ (Cb – 128)

B
=
1.164 ⋅ (Y – 16) + 2.107 ⋅ (Cb – 128)
An example of programmable value to convert from YUV to RGB:
R = Y + 1.596 ⋅ V

G = Y – 0.394 ⋅ U – 0.436 ⋅ V
B = Y + 2.032 ⋅ U
SAMA5D3 Series [DATASHEET]
11121D–ATARM–03-Apr-14
815