Video to PCI-X bridge 99
• Vertical flipping. Captured image data can be flipped vertically.
• Color space conversion. For all versions of Matrox Solios except Matrox Solios
GigE, the color space converter in the video to PCI-X bridge can convert grabbed
image data to YUV and YCbCr formats. The color space converter can also
perform color kill, which converts the data to grayscale and then converts it to the
appropriate destination format. The equations for the conversion are described in
the following table.
For Matrox Solios GigE, the color space converter can convert grabbed data into
YUV, YCbCr, and RGB. The color space converter can also perform color kill.
The equations for the conversion are described in the following table.
Color space conversion Equations
RGB-to-YUV • Y = 0.299 R + 0.587 G + 0.114 B
• U = -0.169 R - 0.331 G +0.500 B + 128
• V = 0.500 R - 0.419 G - 0.081 B +128
RGB-to-YCbCr • Y = 0.257 R + 0.504 G + 0.098 B +16
• Cb = -0.148 R - 0.291 G + 0.439 B +128
• Cr =0.439 R -0.368 G - 0.071 B +128
Color space conversion
Equations
1
YUV-to-BGR
• B = Y + 1.779U - 1.779 X 2
(res-1)
• G = Y - 0.346U - 0.717V + 1.062 X 2
(res-1)
• R = Y + 1.408V - 1.408 X 2
(res-1)
YCbCr-to-BGR (SDTV)
• B = 1.164Y + 2.018Cb - 1.164 X 2
(res-4)
- 2.018
(res-1)
• G = 1.164Y - 0.391Cb - 0.813Cr - 1.164 X 2
(res-4)
- 2.018
(res-1)
• R = 1.164Y + 1.596Cr - 1.164 X 2
(res-4)
- 1.596 X 2
(res-1)
YCbCr-to-BGR (HDTV)
• B = 1.164Y + 2.115Cb - 1.164 X 2
(res-4)
- 2.115 X 2
(res-1)
• G = 1.164Y - 0.213Cb - 0.534Cr - 1.164 X 2
(res-4)
+ 0.747 X 2
(res-1)
• R = 1.164Y + 1.793Cr - 1.164 X 2
(res-4)
- 1.793 X 2
(res-1)