![Texas Instruments DM38x DaVinci User Manual Download Page 66](http://html1.mh-extra.com/html/texas-instruments/dm38x-davinci/dm38x-davinci_user-manual_1097067066.webp)
D2
D1
D0
B
G
R
A2
A1
A0
Cr
Cb
Y
B2
B1
B0
C2
C1
C0
Internal Modules
66
SPRUHI7A – December 2012 – Revised June 2016
Copyright © 2012–2016, Texas Instruments Incorporated
High-Definition Video Processing Subsystem (HDVPSS)
1.2.2 Color Space Converter (CSC)
The color space converter (CSC) module is used to convert video data from one color space to another
with nine programmable integer multipliers.
1.2.2.1
Features
•
All parameters are programmable
•
Each parameter is configurable in signed 13-bits
•
Support for Bypass Mode
1.2.2.2
Functional Description
The conversion between the different color spaces requires addition and multiplication operations on color
and intensity components. The mathematical expression of the conversion can be written as:
Y
= A0*R + B0*G + C0*B + D0
Cb
= A1*R + B1*G + C1*B + D1
Cr
= A2*R + B2*G + C2*B + D2
Using YUV to RGB conversion as an example: YUV represents one color space and RGB represents
another color space. The conversion can be written in the matrix format shown in
Figure 1-22. Matrix Format
Since HDTV and SDTV have different conversion requirements, both conversions of RGB-to-YCbCr and
YCbCr-to-RGB are described. The details of derivations of these matrixes will be given in the following
subsections.
1.2.2.2.1 HDTV Application
1.2.2.2.1.1 HDTV Application with Video Data Range
The two equations presented in this section are for the HDTV application. The chromaticity parameters
are defined by ITU-R709 standard.
The input video data for these equations should be within the range that is defined for video application.
In an 8-bit system:
•
Rd, Gd, Bd, and Yd will be in the range [16-235]
•
Cb and Cr will be the range [16-240]
•
D = 1
In a 10-bit system:
•
Rd, Gd, Bd, and Yd will be in the range [64-940]
•
Cb and Cr will be in the range [64-960]
•
D = 4