A P P E N D I X B |
Setting Up S-Video |
This appendix provides information for setting up S-video (NTSC and PAL video formats) on the Sun XVR-4000 graphics accelerator.
This option allows the S-video port to capture any subregion of the normal video Stream A, after the window system is already running.
Use the svideotool GUI application to set up and select this subregion:
host% /opt/SUNWvidtools/bin/svideotool |
Note - Ensure that Stream B is not in use when you activate svideotool. |
This option produces S-video only, and no display video on either 13W3 output port. FIGURE B-1 shows the location of the S-video DIN4 port.
This setup dedicates all memory and video resources of the graphics board to the
S-video port. This approach is required to reach the maximum multisampling depth of 16 samples per pixel. Another board may be used if a large workspace is required for other purposes beyond the one 640 × 480 window.
Note - This procedure assumes that you are setting up the first board, named zulu0. |
1. Set the resolution on the second stream.
host% fbconfig -dev zulu0 -res SUNW_NTSC_640x480x60 -doublewide disable -samples max |
host% fbconfig -dev zulu0 -res SUNW_PAL_640x480x50 -doublewide disable -samples max |
2. Log out to restart the X Window system and verify the configuration data.
This option allows S-video on one video data stream and a normal screen on the other stream.
There can only be two active video outputs at any given time: Either two 13W3 outputs, or one 13W3A output and one S-video output with 13W3B unused.
This setup shares the memory and video resources between the two streams. Multisample depth could be reduced.
1. Set the resolution and sample density for the first (normal) stream.
host% fbconfig -dev zulu0b -res SUNW_STD_1280x1024x76 -samples 1 |
Note - Notice the 0b above. This is not the same resolution that is used for the default subdevice (zulu0). This resolution needs to be set up independently of zulu0. |
Note - Any valid resolution can be used for zulu0b. The larger the resolution is, and higher its sample density, however, the less memory is available for multisampling in the S-video channel. |
2. Set the resolution and sample density for the second stream.
host% fbconfig -dev zulu0a -res SUNW_NTSC_640x480x60 -samples max |
host% fbconfig -dev zulu0a -res SUNW_PAL_640x480x50 -samples max |
In the preceding command lines, more memory is allocated for the S-video stream.
You can also control the sample density in the following ways:
3. Add or change the Xservers file to include these devices.
You need to add device entries for /dev/fbs/zulu0a and /dev/fbs/zulu0b to the /etc/dt/config/Xservers file. If an entry for /dev/fbs/zulu0 exists already, delete it and add a -dev option for each of the two described devices, zulu0a and zulu0b. Any other devices should remain the same.
Note - Refer to Chapter 5, "Configuring Multiple Frame Buffers," for further information. |
4. Log out to restart the X Window system and verify the configuration data.
When an S-video mode is selected, it temporarily changes the routing set up by -outputs for as long as that video mode is selected.
The S-video resolution (both NTSC and PAL) is always routed to both the 13W3
port B (13W3B) and the S-video DIN4 connector.
If another video stream is active, it is routed to the 13W3A connector. The only
-outputs routing that is not altered by S-video is sending the other (high-resolution, non-S-video) stream to both 13W3 connectors. In this case, the S-video DIN4 port is turned off.
The video that comes out of the 13W3B during S-video mode is a non-standard resolution that has an odd aspect ratio. This format is required by the
S-video encoder. Unfortunately, this cannot be disabled. Any display device attached to 13W3B could be turned off.
In this example, the first board (zulu0) is used for S-video exclusively and the second board (zulu1) is used normally.
1. As superuser, create the /etc/dt/config/Xservers file:
# cd /etc/dt/config # vi + Xservers |
Enter the Xservers file content in one long line.
:0 Local local_uid@console root /usr/openwin/bin/Xsun -dev /dev/fbs/zulu1 -dev /dev/fbs/zulu0 |
3. Specify resolutions for each board:
host% fbconfig -dev zulu1 -res SUNW_STD_1280x1024x76 host% fbconfig -dev zulu0 -res SUNW_NTSC_640x480x60 host% fbconfig -dev zulu0 -doublewide disable -samples max |
4. Check the configuration status of the zulu1 device:
5. Check the configuration status of the zulu0 device:
The video mode SUNW_NTSC_640×480×60 is used to initialize the NTSC video format.
Copyright © 2003, Sun Microsystems, Inc. All rights reserved.