NVIDIA FX5500 User Guide - Page 84

XNVCTRLSetGvoColorConversion(), Display *dpy, int screen, float colorMatrix[3][3]

Page 84 highlights

CHAPTER 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]); NVIDIA Corporation 80 Quadro FX 4500/5500 SDI User's Guide- Version 2.0

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88

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]);