HV7131GP
2004/10/29 V2.4 12
Color Correction & Color Space Conversion
Both of Color Correction and Color Space conversion are implemented by 3x3 matrix operation, so that
two stages may be merged into one matrix stage.
Color correction matrix may be resolved by measuring sensor’s color spread characteristics for primary
color source and calculating the inverse matrix of color spread matrix. For color space conversion
matrix, the equation from CCIR-601 standard is normally used. Therefore, the intended single matrix for
color correction and color space conversion may be resolved as below.
Intended single matrix = Color Space Conversion Matrix * Color Correction Matrix
Intended single matrix coefficients are programmable from –127/64 to 127/64. Programming register
value for intended single matrix coefficients should be resolved by the following equations.
For positive values, CMAxx = Integer (Real Coefficient Value x 64);
For negative values, CMAxx = Two Complement(Integer (Real Coefficient Value x 64));
Real Coefficient Value values from –127/64 to 127/64 can be programmed.
CCIR-601 YCbCr color space conversion equation
< Conversion Equation >
Y = (77R + 150G + 29B)/256 Range: 16 ~ 235
Cb = (-44R –87G + 131B)/256 + 128 Range: 16 ~ 240
Cr = (131R – 110G – 21B)/256 + 128 Range: 16 ~ 240
< Reverse Conversion >
R = Y + 1.371(Cr – 128)
G = Y – 0.698(Cr – 128) – 0.336(Cb – 128)
B = Y + 1.732(Cb – 128)
In the above equations, R, G, and B are gamma-corrected values.
Digital Gain Control
Y, Cb, and Cr digital channels are scaled by this block that receives scaling values from Auto Exposure
and Auto White Balance blocks. Scaling resolution is 1/128 and value range is 1.9 ~ 0.1.
Output Formatting
The output formats such as Bayer Raw Data, RGB 4:4:4, YCbCr 4:4:4, and YCbCr 4:2:2 are supported.
Possible output bus widths are 8 bits and 16bits, and the sequence of Cb and Cr are programmable.
Auto Exposure Control
Y mean value is continuously calculated every frame, and the integration time value is increased or
decreased according to difference between target Y mean value and current frame Y mean value.