fl·
Trio64V+ Integrated Graphics/Video Accelerator
S3
Incorporated
Streams Processor also saves
memory
band-
width
by eliminating the need to save and restore
the overlay background since the background
(primary
stream) is never overwritten in the
frame buffer.
Streams Processor support
is
not available
for
clock-doubled B bits/pixel modes,
24
bits/pixel
modes, interlaced graphics modes and standard
VGA modes except
for
modes
D,
E,
10,
12
and
13.
Bits 3-2
of
CR67
specify the Streams Processor
mode
of
operation.
If
they
are cleared to
OOb,
Streams Processor operation is disabled. They
are
programmed
to 01b when the primary stream
is VGA
mode
D,
E,
10,
12
or
13
(the
only
sup-
ported modes). A secondary stream can be over-
laid on the
primary
stream.
CR67
_3-2
are set to
11
b
to
support
an
Enhanced mode
primary
stream and a secondary stream.
10.1.1 Primary Stream Input
The
primary
stream is generated
by
reading the
RGB
pixel data
written
to the frame buffer
by
the
graphics controller. The
format
for
this data can
be any
of
the
following
as
selected via bits 26-24
of
MMB1BO.
•
RGB-B
(Although
not
shown in Figure
1,
the frame buffer data is first passed
through the internal RAMDACs color
lookup table
(CLUT), where
it
is palet-
tized before being passed to the
Streams Processor.
• KRGB-16 (1.5.5.5) - The K
bit
is the color
key.
• RGB-16 (5.6.5)
• XRGB-32
(X.B.B.B)
- X is the ignored up-
per byte.
10.1.2 Secondary Stream Input
The secondary stream is generated by reading
pixel data
from
a separate section
of
the frame
buffer than
that
used
to
generate the primary
screen. This
might
be
RGB
data
written
by the
graphics controller, such
as
a sprite used
by
game programmers
for
moving
objects. It could
also be
RGB,
YUV
or
YCbCr data written
to
the
10-2 STREAMS
PROCESSOR
frame buffer by some video source
(CPU,
de-
coder, digitizer). The
format
for
this
data can be
any
of
the
following
as
selected via bits 26-24
of
MMB190.
YCbCr-16
(4.2.2),
16
- 240
input
range
• YUV-16 (4.2.2), 0 -255
input
range
KRGB-16 (1.5.5.5)
- The K
bit
is the color
key.
• YUV (2.1.1)
•
RGB-16
(5.6.5)
• XRGB-32
(X.B.B.B)
- X is
the
ignored up-
per byte.
The data can
be
passed
through
unscaled
or
scaled up horizontally and vertically
by
an
arbi-
trary amount.
YCbCr/YUV data is
color
space
converted and all data is converted to RGB-24
(B.B.B)
format.
10.1.3 Hardware Cursor Generation
Hardware cursor generation is explained in Sec-
tion
15.
The cursor
is
overlaid on the Streams
Processor image.
10.1.4 Frame Buffer Organization/
Double Buffering
For each stream to
be
used, the starting location
(offset) in the frame buffer and the stride (byte
offset between vertically adjacent pixels on the
screen) must be specified. Both
the
primary
and
the secondary streams can be double buffered
as
depicted in Figure 10-1. This means
that
dupli-
cate frame buffer storage can be provided
for
both the primary and secondary image (or
for
either one
of
them).
With
double buffering, the
programmer can rapidly switch
from
one pri-
mary
or
secondary image to the other. In addi-
tion, having
two
images allows more
time
for
updating one image
while
the
other
is being
displayed. Defining the frame
buffer
organization
and implementing double buffering are done via
the register fields described in Table 4-1.
LPB
stands
for
Local Peripheral Bus.
The secondary stream can be generated
from
data
written
to the frame buffer
via
the
LPB
when