![](http://datasheet.mmic.net.cn/310000/ADV7162KS140_datasheet_16243894/ADV7162KS140_37.png)
ADV7160/ADV7162
REV. 0
–37–
GAMMA CORRECTION
8 Bits vs. 10 Bits
Gamma
Corrected
(2.7)
Quantized to
8 Bits
Quantized to
10 Bits
8-Bit Data
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
0.977797
0.979304
0.980807
0.982306
0.983801
0.985292
0.986780
0.988264
0.989744
0.991220
0.992693
0.994161
0.995626
0.997088
0.998546
1.000000
250
250
251
251
251
252
252
252
253
253
254
254
254
255
255
255
1001
1002
1004
1005
1007
1008
1010
1011
1013
1015
1016
1018
1019
1021
1022
1023
INPUT CODE – DECIMAL
D
1.00
0.20
0
256
32
64
96
128
160
192
224
0.90
0.60
0.50
0.40
0.30
0.80
0.70
GAMMACORRECTONCURVE
CRTRESPONSE
LNEARRESPONSERECEVEDBYTHEEYE
0.00
0.10
Gamma Correction Curve (Gamma Value = 2.7)
APPENDIX 3
10-BIT DACs AND GAMMA CORRECTION
10-Bit DACs
10-Bit RAM-DAC resolution allows for nonlinear video correc-
tion, in particular Gamma Correction. The ADV7160/ADV7162
allows for an increase in color resolution from 24-bit to 30-bit
effective color without the necessity of a 30-bit deep frame
buffer. In true-color mode, for example, the part effectively op-
erates as a 24-bit to 30-bit color look-up table.
Up to now we have assumed that there exists a linear relation-
ship between the actual RGB values input to a monitor and the
intensity produced on the screen. This, however, is not the
case. Half scale digital input (1000 0000) might correspond to
only 20% output intensity on the CRT (Cathode Ray Tube).
The intensity (I
CRT
) produced on a CRT by an input value I
IN
is
given by:
I
CRT
=
(
I
IN
)
c
where
c
ranges from 2.0 to 2.8.
If the individual values of c for red, green and blue are known,
then so called “Gamma Correction” can be applied to each of
the three video input signals (I
IN
); therefore:
I
IN
(
corrected
)
=
k
(
I
IN
)
1
/
c
Traditionally, there has been a trade-off between implementing
a nonlinear graphics function, such as gamma correction, and
color dynamic range. The ADV7160/ADV7162 overcomes this
by increasing the individual color resolution of each of the red,
green and blue primary colors from 8 bits per color channel to
10 bits per channel (24 bits to 30 bits).
The table highlights the loss of resolution when 8-bit data is
gamma-corrected to a value of 2.7 and quantized in a traditional
8-bit system. Note that there is no change in the 8-bit quan-
tized data for linear changes in the input data over much of the
transfer function. On the other hand, when quantized to 10 bits
via the 10-bit RAMs and 10-bit DACs of the ADV7160/
ADV7162, all changes on the input 8-bit data are reflected in
corresponding changes in the 10-bit data.
The graph shows a typical gamma curve corresponding to a
gamma value of 2.7. This is programmed to the red, green and
blue RAMs of the color look-up table instead of the more tradi-
tional linear function. Different curves corresponding to any
particular gamma value can be independently programmed to
each of the red, green and blue RAMs.
Other applications of the 10-bit RAM-DAC include closed-loop
monitor color calibration.