
Confidential
HV7161SPA2
CMOS Image Sensor
With Image Signal Processing
B’
This document has a general product description and is subject to change without notice.
MagnaChip Semiconductor Ltd. does not assume any responsibility for use of circuits described
and no patent licenses are implied.
- 14 -
2005 MagnaChip Semiconductor Ltd.
= -0.029R – 0.374G + 1.403B
Color-corrected R’G’B’ = CCM * Gamma-corrected RGB
In the above equations, R, G, and B are gamma-corrected values.
Color Space Conversion
For color space conversion matrix, the equation from CCIR-601 standard is normally used.
1. RGB to YUV Color Space Conversion(CSC) equation
V
= (131R’ – 110G’ – 21B’) / 256 + 128 Range: 16 ~ 240
Y
= (77R’ + 150G’ + 29B’) / 256 Range: 16 ~ 235
U
= (-44R’ –87G’ + 131B’) / 256 + 128 Range: 16 ~ 240
VYU = CSC * Color-corrected R’G’B’ + [ 128 0 128 ]
YUV to RGB reverse conversion equation
R = Y + 1.371(V – 128)
G = Y – 0.698(V – 128) – 0.336(U – 128)
B = Y + 1.732(U – 128)
2. RGB to YCbCr Color Space Conversion(CSC) equation
Cr
= ( 112R’ – 94G’ – 18B’ ) / 256 + 128 Output range: 16 ~ 240
Y
= ( 66R’ + 129G’ + 25B’ ) / 256 + 16 Output range: 16 ~ 235
Cb
= ( -38R’ –74G’ + 112B’ ) / 256 + 128 Output range: 16 ~ 240
CrYCb = CSC * Color-corrected R’G’B’ + [ 128 16 128 ]
YCbCr to RGB reverse conversion equation
R
= 1.1636Y – 0.0029Cb + 1.5991Cr – 222.9271
G
= 1.1636Y – 0.3914Cb – 0.8184Cr + 136.2322
B
= 1.1636Y + 2.0261Cb + 0.0016Cr – 278.1660
Output Formatter
The output formats such as 8bit Bayer Raw Data, 16bit RGB 4:4:4, 16bit YCbCr 4:4:4, 8bit/16bit
YCbCr 4:2:2, and 8bit RGB5:6:5 are supported. Possible output bus widths are 8 bits or 16bits, and
the sequence of Cb and Cr are programmable. The output formats are compatible with
Recommendation CCIR-601, CCIR-656.
Auto Exposure Control
Y mean value is continuously calculated every frame, and the integration time and the analog
preamplifier gain value are mutually increased or decreased according to difference between
target and current frame Y mean value.
Auto White Balance Control
Cb, Cr frame mean value is calculated every frame, and according to Cb, Cr frame mean values’