
VP 510
8
3
BYPASS This bit should be reset when Cr Cb data is to
being processed. NORM must then be set.It
should be set when the ranging and offset
circuit is to be bypassed.
4
NORM
When this bit is reset the chrominance outputs
are not normalized, and the 8 bit outputs rep
resent a range of
±
1. When NORM is set the
outputs will represents a range of
±
0.5, still
using 8 bits.
7:5
Reserved. Must all be reset.
CONVERSION BETWEEN RGB AND YUV
If incoming, gamma corrected, analog RGB is normalized
to a range of 0 to 1, then the following coefficients will produce
YUV outputs. Y will have a range of 0 to 1, U will have a range
of
±
0.436, and V will have a range of
±
0.615. The NORM bit
must be reset, and the BYPASS bit set. The 8 bit chrominance
outputs then represent a possible range of
±
1.
Y
U =
V
0.299
-0.147
0.615
0.587
-0.289
-0.51
0.114
0.436
-0.100
R
G
B
The coefficients given below will produce gamma cor-
rected RGB normalized to a range of
±
1, when YUV have the
ranges given above.
R
G =
B
1
1
1
0
-0.395
2.032
1.140
-0.581
0
Y
U
V
These coefficients translate to the following HEX values,
which define the 12 bit number to be loaded. Note that these
are given as simple three digit HEX values, without a separate
3 bit integer and 9 bit fractional part.
Y
U =
V
099
F64
13A
12C
F6C
EF8
03A
0DF
FCC
R
G
B
R
G =
B
200
200
200
000
F35
410
247
ED6
000
Y
U
V
If normalized digital UV components are required, the
coefficients must be modified as given below. The NORM and
BYPASS bits should then be set. The U I/O range is expanded
to
±
0.5, and the V I/O range is compressed to the same
values. Y has an I/O range of 0 to 255. The 8 bit chrominance
outputs now represent a range of
±
0.5.
Y
U =
V
0.299
-0.169
0.5
0.587
-0.331
-0.419
0.114
0.500
-0.081
R
G
B
R
G =
B
1
1
1
0
-0.344
1.772
1.42
-0.714
0
Y
U
V
The equivalent HEX values which be loaded into the
device are given below;
Y
U =
V
099
FA9
100
12C
F56
F29
03A
100
FD6
R
G
B
R
G =
B
200
200
200
000
F4F
38B
2CD
E92
000
Y
U
V
CONVERSION BETWEEN RGB AND YIQ
The coefficients for converting analog RGB to YIQ are
given below. The gamma corrected RGB inputs have a range
of 0 to 1. Analog I and Q have ranges of
±
0.596 and
±
0.525
respectively, and the NORM bit must be reset to produce 8 bit
outputs representing a range of
±
1. The BYPASS bit must be
set.
Y
I
Q
0.299
0.596
0.212
0.587
-0.275
-0.523
0.114
-0.321
0.311
R
G
B
=
In the opposite direction the following coefficients produce
gamma corrected RGB, when the YIQ inputs have the ranges
given above.
R
G =
B
1
1
1
0.956
-0.272
-1.108
0.620
-0.647
1.705
Y
I
Q
In HEX these values become;
Y
I
Q
099
131
06C
12C
F73
EF4
03A
F5B
09F
R
G
B
=
R
G =
B
200
200
200
1E9
F74
SDC8
139
EB4
368
Y
I
Q
The conversion between digital RGB and normalized
digital YIQ requires the following coefficients. I and Q are then
compressed to fall in the range of
±
0.5, and the NORM bit must
be set since the 8 bit chrominance outputs now represent
±
0.5.
The BYPASS bit must also be set.
Y
I
Q
0.299
0.500
0.203
0.587
-0.231
-0.500
0.114
-0.269
0.297
R
G
B
=
R
G =
B
1
1
1
1.139
-0.324
-1.321
0.648
-0.677
1.783
Y
I
Q
These correspond to the HEX coefficients gven below;
Y
I
Q
099
100
068
12C
F89
F00
03A
F76
098
R
G
B
=