This directory contains several subdirectories providing sample code
implementations of uncompressed video processing on the Silicon Graphics 320 and
540 workstations. The subdirectories are:
320-540Uncompressed
- Examples of capturing and playing uncompressed video using the
320 and 540.
common:
- Subdirectory containing common routines used by the sample programs.
Each sample program is documented at the top of the file, including
command line options and basic program flow. All of these programs
were run from an MS-DOS Command Prompt Window.
The utility "nmake" was used to build the applications. The programs in
320-540Uncompressed require the library ..\common\common.lib for linking. This
library contains routines shared by all the sample programs (i.e. the effect
calculation code is in common\fxcode.c). The file ..\common\console.obj is
also reuired for linking. The SGI OpenGL SDK and Digital Media SDK must also
be installed in order to compile and link the sample programs.
At run time, the sample programs must be able to find common\common.dll. This
is handled in this distribution by simply copying common\common.dll into the
320-540Uncompressed directory. Both common.lib and common.dll can be rebuilt by
running nmake in the while in the common subdirectory.
Here is a list of the sample programs. When viewing them on an NT system with
an editor make sure your tabstops are set to 4.
Here is a real quick list of the sample programs:
320-540Uncompressed
1. vgrab_u - Captures uncompressed video to disk.
2. vplay_u - Plays uncompressed video from disk to video out.
3. vidin2tex - Grabs live video and draws fields to the gfx monitor
via texture memory.
4. tplay_u - Plays an uncompressed video stream from disk to gfx
using texture memory to scale the image size. The
uncompressed data can be 4:2:2 yuv, rgb 24 bit, or
rgba.
5. gstreamfx_u - Play video streams (up to four) from memory to the
gfx monitor and optionally sends the result to video
out (via glReadPixels).
6. gdv_streamfx_u - Plays video streams (up to four) from disk at full
rate with effects. The uncompressed data can be
4:2:2 yuv or rgb 24 bit or rgba 24 bit. The effects
are drawn on the gfx monitor and optionally sent to
video out.
7. pstreamfx_u - Play video streams (up to four) from memory to an
off screen pbuffer. The effect is then read back
and sent to video out. The result can also
optionally be copied onto the gfx monitor.
8. pdv_streamfx_u - Plays video streams (up to four) from disk at full
rate with effects. The uncompressed data can be
4:2:2 yuv or rgb 24 bit or rgba. The effects are
drawn to an off screen pbuffer, read back, and
sent to video out. The result can also be
optionally copied onto the gfx monitor.
Also, look in the file DiskInfo.txt for some tips on running the programs to
play multiple video streams from disk in real time (gdv_streamfx_u and pdv_streamfx_u).
Comments or questions: e-mail jmontine@boston.sgi.com