
REV. 0
ADV7195
–21–
FILTER GAIN
FG (FG7–FG0)
(Address (SR4–SR0) = 10H)
Figure 34 shows the various operations under the control of the
Filter Gain register.
FG6
FG5
FG3
FG1
FG4
FG2
FG0
FG7
FG7
–
FG4
FILTER GAIN B
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
–
8
1 0 0 1
–
7
1 0 1 0
–
6
1 0 1 1
–
5
1 1 0 0
–
4
1 1 0 1
–
3
1 1 1 0
–
2
1 1 1 1
–
1
0
1
2
3
4
5
6
7
FG3
–
FG0
FILTER GAIN A
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
–
8
1 0 0 1
–
7
1 0 1 0
–
6
1 0 1 1
–
5
1 1 0 0
–
4
1 1 0 1
–
3
1 1 1 0
–
2
1 1 1 1
–
1
0
1
2
3
4
5
6
7
Figure 34. Filter Gain Register
FG BIT DESCRIPTION
Filter Gain A (FG3–FG0)
These bits are used to program the gain A value, which varies
from response –8 to response +7 and are applied to Filter A.
Filter Gain B (FG4–FG7)
These bits are used to program the gain B value, which varies
from response –8 to response +7, and are applied to Filter B.
Refer to Sharpness Filter Control and Adaptive Filter Control
section for more detail.
GAMMA CORRECTION REGISTERS 0–13
(GAMMA CORRECTION 0–13)
(Address (SR5–SR0) = 14H–21H)
The Gamma Correction Registers are 14 8-bit-wide registers.
They are used to program the gamma correction Curves A and B.
Generally, gamma correction is applied to compensate for the
nonlinear relationship between signal input and brightness
level output (as perceived on the CRT). It can also be applied
wherever nonlinear processing is used.
Gamma correction uses the function:
Signal
OUT
= (S
ignal
IN
)
γ
where
γ
= gamma power factor.
Gamma correction is performed on the luma data only.
The user has the choice of two different curves, Curve A or
Curve B. At any one time only one of these curves can be used.
The response of the curve is programmed at seven predefined
locations. In changing the values at these locations the gamma
curve can be modified. Between these points linear interpola-
tion is used to generate intermediate values. Considering the
curve to have a total length of 256 points, the seven locations
are at: 32, 64, 96, 128, 160, 192, 224.
Locations 0, 16, 240, and 255 are fixed and cannot be changed.
For the length of 16 to 240 the gamma correction curve has to
be calculated as below:
y
=
x
γ
where
y
= gamma corrected output.
x
= linear input signal.
γ
= gamma power factor.
To program the gamma correction registers, the seven values
for y have to be calculated using the following formula:
y
n
= [
x
(
n
–16)
/(240 – 16)]
γ
×
(240–16) + 16
where
x
(n–16)
= Value for x along x-axis at points:
n
= 32, 64, 96, 128, 160, 192, or 224.
y
n
= Value for y along the y-axis, which has to be written
into the gamma correction register.
Example:
y
32
=
[(16/224)
0.5
×
2 24] + 16 = 76
*
y
64
=
[(48/224)
0.5
×
224] + 16 =120
*
y
96
=
[(80/224)
0.5
×
224] + 16 = 150
*
y
128
=
[(112/224)
0.5
×
224] + 16 = 174
*
*
Rounded to the nearest integer.
The above will result in a gamma curve shown on the next
page, assuming a ramp signal as an input.
250
200
150
100
50
0
300
SIGNAL OUTPUT
SIGNAL INPUT
0.5
GAMMA CORRECTION BLOCK OUTPUT
TO A RAMP INPUT
G
0
50
100
150
200
250
LOCATION
Figure 35. Signal Input (Ramp) and Signal Output for
Gamma 0.5