|
PXD20RM Datasheet, PDF (1556/1628 Pages) Freescale Semiconductor, Inc – PXD20 Microcontroller | |||
|
◁ |
Table 47-4. LUMA_COMP Fields
Field
Y_RED[9:0]
Y_GREEN[9:0]
Y_BLUE[9:0]
Luminance coefficient for red matrix.
Luminance coefficient for green matrix.
Luminance coefficient for blue matrix.
Description
The RGB pixel value is computed using following formulae:
Red
=
ï¨---Y------â----1---6----ï©---ï---y----r--e---d-
512
+
ï¨---C----r----â----1---2---8----ï©--C----r---r--e---d--
512
+
ï¨---C----b-----â----1---2---8----ï©--C----b----r--e---d--
512
Eqn. 47-1
Green = ï¨---Y------â----1---6----ï©---ï---Y-----g---r---e---e---n- + ï¨---C----r----â----1---2---8----ï©--C----r---g---r---e---e---n- + -ï¨--C----b-----â----1---2---8----ï©--C----b----g---r---e---e---n-
512
512
512
Eqn. 47-2
Blue = ï¨---Y------â----1---6----ï©---ï---y----b---l--u---e- + ï¨---C----r----â----1---2---8----ï©--C----r---b---l--u----e- + ï¨---C----b-----â----1---2---8----ï©--C----b----b---l--u----e-
512
512
512
Eqn. 47-3
The multiplications with Y_red, Y_green, and Y_blue are unsigned multiplications. The multiplications
with Cr_red, Cb_red, Cr_green, Cb_green, Cr_blue, and Cb_blue are signed multiplications. The addition
is saturated to prevent overflow.
47.2.3.3 CHROMA_RED
Offset 0x08
0
1
2
3
4
5
6
7
8
9
10
11
R
CR_RED[10:0]
W
Reset 0
0
0
0
0
0
1
1
0
0
1
1
16
17
18
19
20
21
22
23
24
25
26
27
R
CB_RED[11:0]
W
Reset 0
0
0
0
0
0
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 47-4. CHROMA_RED Register
Access: User read/write
12
13
14
15
0
0
0
1
28
29
30
31
0
0
0
0
Table 47-5. CHROMA_RED Fields
Field
Description
CR_RED[10:0]
CB_RED[11:0]
Cr coefficient for red matrix.
Cb coefficient for red matrix.
47-8
PXD20 Microcontroller Reference Manual, Rev. 1
PreliminaryâSubject to Change Without Notice
Freescale Semiconductor
|
▷ |