Bernard Leclerc (bleclerc++at++cae.ca)
Mon, 29 Jul 1996 17:42:07 -0400
> I have a Performer application which currently displays into a 640x480
> window and I use vout to send this window via the SVideo output to a TV.
>
> I just got the MCO option installed on my Onyx, and I want to send this
> window to another output channel through the MCO board. Does anyone have a
> code fragment they would share to show me how to do this?
Jeff,
You must first configure the MCO for VGA output, you have a choice of 2, 4 or 6
VGA channels. Try
% setmon -Svx 2++at++640x480_60
% stopgfx
% startgfx
Then use the command gfxinfo to obtain the position and size of the MCO
channels. Here is the output of gfxinfo on my machine:
% /usr/gfx/gfxinfo
Graphics board 1 is "REV" graphics.
Managed (":0.1") 1280x960
MCO Display 0 640x480 ++at++ 60Hz, origin (0, 0)
MCO Display 1 640x480 ++at++ 60Hz, origin (0, 480)
MCO Display 2 640x480 ++at++ 60Hz, origin (640, 0)
MCO Display 5 640x480 ++at++ 60Hz, origin (640, 480)
12 GE (GE10 rev. 0x7)
4 RM5 boards
Large pixel depth
10-bit RGB pixels
Driving Multi-Channel Option
As you can see, this MCO generates 4 VGA channels arranged in the following
order:
+-------+-------+
| | |
| VGA 1 | VGA 5 |
| | |
+-------+-------+
| | |
| VGA 0 | VGA 2 |
| | |
+-------+-------+
The Multi-Channel Option Programmer's Guide has a small programming example at
the end of chapter 2. They show how to parse the output of gfxinfo to identify
the size and position of various channels.
Once you have this information, you have the choice of creating a pfPipeWindow
with no border (no decoration) and then use setOriginSize(). Or you can open a
full screen pipe window and create one VGA channel with the appropriate
viewport to cover the desired VGA channel.
Hope this gets you started...
--
Bernard Leclerc CAE Electronics Ltd., 8585 Cote De Liesse
Technical Leader Saint-Laurent, Quebec, Canada, H4L-4X4
3-D Graphics Applications tel: +1 514 341 2000 extension 2275
bleclerc++at++cae.ca fax: +1 514 340 5496
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:14 PDT