SunVideo Plus for PCI User's Guide

Video Display

This is a modified example of an XIL that captures video and displays it.

Changes to video attributes that affect the color of the image (brightness, contrast, hue, and so on) are also made to the database used by the control panel. Thus, the defaults for these settings depend on how they were last set. If you run this application once and set the brightness to a particular value, this value will be the default setting when you next run a video application.

The following shows the command-line syntax for the xil_display example:


hostname% xil_display options

The following table describes command options and the default setting.

Table 4-7 xil_display Options

Legal Options 

Description and Values 

Default 

-s %d

Shrink factor 

2

-I %d

Select input channel 

1

-f %d

Frames to capture 

100

-w %d

Capture subimage width 

640

-h %d

Capture subimage height 

480

-i %d

Frames to skip between capture 

0

-m %d

Maximum frames to buffer 

2

-x %d

x window location 

(random) 

-y %d

y window location 

(random) 

-D %s

Name of device 

/dev/olk0 

Legal Switches

 

-g

Enable grayscale mode 

 

-E

Exit on first error 

 

-d

Do not display result of capture 

 

Video Attributes

 

-B %d

Brightness 

none 

-C %d

Contrast 

none 

-H %d

Hue 

none 

-U %d

Saturation/gain U component 

none 

-V %d

Saturation/gain V component 

none 

-c %d

Colormap version (0=XIL std, 1=XIL gamma corrected) 

1

The colormap version option does nothing if the current display depth is 24 bits. On 8-bit display depths, it affects which colormap is installed for the video window. The XIL versions cause the SunVideo Plus to capture 16-bit video data which is then dithered in software by the XIL molecules to 8 bits.

Example Usage

To display video, type:


hostname% xil_display