NVIDIA Corporation
80 Quadro FX 4500/5500 SDI User’s Guide– Version 2.0
C
HAPTER 5
API Control
XNVCTRLSetGvoColorConversion()
void XNVCTRLSetGvoColorConversion (
Display *dpy,
int screen,
float colorMatrix[3][3],
float colorOffset[3],
float colorScale[3]
);
This function sets the color conversion matrix, offset, and scale that should be used for
GVO (Graphic to Video Out).
The Color Space Conversion data is ordered as follows:
• colorMatrix[0][0] // r.Y
• colorMatrix[0][1] // g.Y
• colorMatrix[0][2] // b.Y
• colorMatrix[1][0] // r.Cr
• colorMatrix[1][1] // g.Cr
• colorMatrix[1][2] // b.Cr
• colorMatrix[2][0] // r.Cb
• colorMatrix[2][1] // g.Cb
• colorMatrix[2][2] // b.Cb
• colorOffset[0] // Y
• colorOffset[1] // Cr
• colorOffset[2] // Cb
• colorScale[0] // Y
• colorScale[1] // Cr
• colorScale[2] // Cb
where the data is used according to the following formulae:
• Y = colorOffset[0] + colorScale[0] *
(R * colorMatrix[0][0] + G * colorMatrix[0][1] + B * colorMatrix[0][2]);