Trio64V+ Integrated Graphics/Video Accelerator
S3
Incorporated
Table 10-2. Register Fields Used For Scaling
Up
the
Secondary Stream
Register
Field
Description
MM8190_30-28
Filter Characteristics
000 = Secondary stream (pass-through)
001
= Secondary stream, linear, 0-2-4-2-0,
for
X stretch
010 = Secondary stream, bi-linear,
for
2X to 4X stretch
011
= Secondary stream, linear, 1-2-2-2-1,
for
4X
stretch
This
selection applies only
to
horizontal scalinQ.
MM8190_11-0
DDA Horizontal Accumulator Initial Value. Value = 2
(WO-1)
- (W1-1), where
WO
is the line
width
in pixels before scaling and
W1
is the line
width
after
scaling. This is a signed value.
MM8198_10-0,
K1
Horizontal Factor. Value =
WO-1,
where
WO
is the line
width
in pixels before
scalinQ. This is a siQned value.
MM8198_26-16
K2
Horizontal Factor. Value =
WO-W1,
where
WO
is the line
width
in pixels
before scaling and
W1
is the line width after scaling. This is a signed value.
MM81EO_10-0,
K1
Vertical Factor. Value = [height (in lines)
of
the initial
output
window
(before scaling)] -1. The initial output
window
height is the vertical resolution
of
the data written to the frame buffer and is shown
as
HO
in Figure 10-2.
MM81E4_10-0,
K2
Vertical Factor. Value = 2's complement
of
[height (in lines)
of
the initial
output
window
(before scaling)] - [height (in lines)
of
the final
output
window
(after scaling)]
The initial
output
window
height is the vertical resolution
of
the data written
to the frame buffer and is shown
as
HO
in Figure 10-2. The final value is the
same height
value that is programmed in MM81
FC_10-0
and is shown
as
H1
in
Figure 10-2. This
value is then the 2's complement
of
(H1
-
HO).
MM81E8_11-0, DDA Vertical Accumulator Initial Value. Value = 2's
complement
of
[height (in
lines)
of
the
output
window
after scaling]-1. This is the same
height
value that
is
~ogrammed
in MM81FC 10-0 and is shown
as
H1
in Figure 10-2.
3.
MM81AO_26-24 = 010b - Secondary stream
blended
with
the
primary
stream on a
6.
MM81AO_26-24 = 110b - Primary stream
overlaid on the secondary stream in
an
ir-
regular
window.
This requires a
color/chroma key. This case allows,
for
ex-
ample,
graphics
text
to
overlay video
with
the video appearing around and even in-
side
of
the
text
characters.
pixel
by
pixel basis
within
the secondary
stream
window.
This is used
to
provide a
dissolve between
two
scenes.
4.
MM81
AO_26-24
=
011
b - Secondary stream
blended
with
the primary stream on a
pixel
by
pixel basis
within
the secondary
stream
window.
This is used
to
provide a
fade between
two
scenes.
5.
MM81AO_26-24 =
101
b - Secondary stream
overlaid on the primary stream in an ir-
regular
window.
This requires a color key.
This
would
be used,
for
example,
for
game sprites. Only the graphics area be-
hind the sprite shape
would
be
covered
up.
10-6 STREAMS
PROCESSOR
10.3.1 Opaque Rectangular
Overlaying
These modes
are
items 1 and 2 in the compose
modes list. When one
ofthese
modes is used, the
programmer can invoke a feature called opaque
overlay
control.
This
is
enabled
by
setting
MM81DC_31
to
1.lf
MM81AO_26-24 =
OOOb
(sec-
ondary stream
on
top), then MM81
DC_30
must