
Data conversion 55
Image data can be converted as follows:
The equations for the YUV16 conversion are described in the following table. The
value of
depth
is either 8 or 16 when converting BGR24 or BGR48 data,
respectively. Note that while performing BGR48-to-YUV color space conversion,
the operations are carried out on 16-bit data; then, each resulting YUV component
is bit-shifted right by 8 bits ( >> (
depth
- 8) where the value of
depth
is 16).
Input format
Output format
8-bit
monochrome
16-bit
monochrome
24-bit
packed
BGR
32-bit
packed
BGRa
48-bit
packed
BGR
16-bit
YUV
(YUYV)
24-bit
RGB
planar
48-bit
RGB
planar
8-bit monochrome
yes
yes
yes
yes
yes
16-bit monochrome
yes
yes
yes
yes
yes
yes
yes
yes
24-bit packed BGR
yes
yes
yes
yes
yes
48-bit packed BGR
yes
yes
yes
yes
yes
yes
yes
yes
Color space conversion
Equations
BGR-to-YUV
• Y = (0.114B + 0.587G +0.299R) >>(depth - 8)
• U = (0.500B - 0.331G - 0.169R + 2
(depth-1)
) >>(depth - 8)
• V = (-0.081B - 0.419G + 0.500R + 2
(depth-1)
) >>(depth - 8)
Summary of Contents for Rapixo CL Pro
Page 6: ......
Page 18: ...18 Chapter 1 Introduction...
Page 64: ...64 Appendix A Glossary...
Page 86: ...86 Appendix B Technical information...
Page 95: ...Limited warranty Refer to the warranty statement that came with your product...
Page 96: ......