1
0
0
0
0
0
0
Y
G
G
U
b
B
B
V
r
R
R
E
E
E
E
K
E
E
E
K
E
E
′
′
′
=
•
•
≡
′
′
′
′
′
′
0
M
M
0.587
0.114
0.299
0.587
0.886
0.299
0.587
0.114
0.701
Y
G
G
B
Y
B
B
R
Y
R
R
E
E
E
E
E
E
E
E
E
E
E
′
′
′
−
= −
−
≡
′
′
′
′
−
−
−
′
′
′
′
0
M
1
209556997
0.492111
3
96146491
221990474
0.877283
288439473
b
r
K
K
=
=
=
=
(
)
(
)
0.587
0.114
0.299
Y
G
B
R
U
b
B
Y
V
r
R
Y
E
E
E
E
E
K
E
E
E
K
E
E
=
+
+
′
′
′
′
=
−
′
′
′
=
−
′
′
′
Internal Modules
111
SPRUHI7A – December 2012 – Revised June 2016
Copyright © 2012–2016, Texas Instruments Incorporated
High-Definition Video Processing Subsystem (HDVPSS)
1.2.6.2.7.2 NTSC/PAL Encoding
1.2.6.2.7.2.1 YUV Generation
First, YUV data should be generated by an appropriate color space conversion. The input color format
could be YCbCr or RGB. The CSC can convert either format to YUV.
The fundamental YUV formula is defined in the standard as follows:
where K
b
and K
r
are kell factors which have the following values:
E
B
′−
E
Y
′
and E
R
′−
E
Y
′
are derived using the following equation:
Using M
0
, the fundamental YUV formula can be rewritten as follows.
The following are examples of CSC programming for various input and output combinations.