home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
videotlk.zip
/
SAMPLES
/
EX5
/
EX5.INF
(
.txt
)
< prev
next >
Wrap
OS/2 Help File
|
1995-10-23
|
10KB
|
240 lines
ΓòÉΓòÉΓòÉ 1. Introduction ΓòÉΓòÉΓòÉ
This example Presentation Manager Application was written by Abbotsbury
Software Ltd. to support the use of the Hauppage Computer Works Inc. Celebrity
TV card under the IBM OS/2 Warp v3 operating system.
This example application is the Hello World application plus a remote control,
tuning facilities, single frame capture and invoking a setup notebook for use
with the Hauppauge Win/TV Video Capture Adapters. The remote control is invoked
by pressing the left mouse button whilst the remote pointer is visible. The
menu is invoked by pressing the right mouse button whilst the remote pointer is
visible. To invoke single frame capture either press both mouse buttons
simultaneously, press the F6 button or select Capture from the Capture
submenu.
The menu contains the following options : -
File
Tune... F4
TV setup... F5
Capture
Help
ΓòÉΓòÉΓòÉ 2. Remote Control ΓòÉΓòÉΓòÉ
To select the TV/2 remote control panel you must select the left mouse button
whilst the remote pointer is being displayed (in the TV/2 screen). Once this
button has been selected a dialogue box is opened which contains the controls
which allow you to change various settings. The settings which are changeable
are : -
Channel
Left Volume
Right Volume
Treble
Bass
Brightness
Hue
Saturation
Contrast
Source
Mute
Freeze
On/Off
ΓòÉΓòÉΓòÉ 2.1. Channel ΓòÉΓòÉΓòÉ
The channel number is set by selecting one of the up or down arrows either
side of the entry field (see below). The frequency of the channel is dependent
on the region selected (see Advanced features).
Down =
Up =
ΓòÉΓòÉΓòÉ 2.2. Left Volume ΓòÉΓòÉΓòÉ
The left volume level is changeable by using the slider marked with the
following bitmap to the right : -
ΓòÉΓòÉΓòÉ 2.3. Right Volume ΓòÉΓòÉΓòÉ
The right volume level is changeable by using the slider marked with the
following bitmap to the right : -
ΓòÉΓòÉΓòÉ 2.4. Treble ΓòÉΓòÉΓòÉ
The treble level is changeable by using the slider marked with the following
bitmap to the right : -
ΓòÉΓòÉΓòÉ 2.5. Bass ΓòÉΓòÉΓòÉ
The bass level is changeable by using the slider marked with the following
bitmap to the right : -
ΓòÉΓòÉΓòÉ 2.6. Brightness ΓòÉΓòÉΓòÉ
The brightness level is changeable by using the slider marked with the
following bitmap to the right : -
ΓòÉΓòÉΓòÉ 2.7. Hue ΓòÉΓòÉΓòÉ
The hue level is changeable by using the slider marked with the following
bitmap to the right : -
ΓòÉΓòÉΓòÉ 2.8. Saturation ΓòÉΓòÉΓòÉ
The saturation level is changeable by using the slider marked with the
following bitmap to the right : -
ΓòÉΓòÉΓòÉ 2.9. Contrast ΓòÉΓòÉΓòÉ
The contrast level is changeable by using the slider marked with the following
bitmap to the right : -
ΓòÉΓòÉΓòÉ 2.10. Source ΓòÉΓòÉΓòÉ
To select the pm for the application you choose one of the four buttons marked
1, 2, 3, 4 or select the colour bars test card by selecting the button with the
following bitmap : -
ΓòÉΓòÉΓòÉ 2.11. Mute ΓòÉΓòÉΓòÉ
To mute the sound from within the TV/2 application you must press the button
containing a speaker as follows : -
When you press the button it will change state to being pressed and the bitmap
changes to represent mute : -
To unmute press the button again to return it to its former state.
ΓòÉΓòÉΓòÉ 2.12. Freeze ΓòÉΓòÉΓòÉ
To freeze the image from within the TV/2 application you must press the button
containing the blue bitmap as follows : -
When you press the button it will change state to being pressed and the bitmap
changes to white instead of blue. To unfreeze the TV image press the button
again to return it to its former state.
ΓòÉΓòÉΓòÉ 2.13. On/Off ΓòÉΓòÉΓòÉ
To switch the TV image off from within the TV/2 application you must press the
button containing the green bitmap : -
When you press the button it will change state to being unpressed and the
bitmap changes to represent off : -
To switch the TV image back on press the button again to return it to its
former state.
ΓòÉΓòÉΓòÉ 3. File Menu ΓòÉΓòÉΓòÉ
The menu contains the following options : -
Quit
ΓòÉΓòÉΓòÉ 3.1. Quit ΓòÉΓòÉΓòÉ
This option allows you to choose whether to quit the application.
ΓòÉΓòÉΓòÉ 4. Tune Menu Item ΓòÉΓòÉΓòÉ
The Tune menu item invokes a dialog box which allows you to tune the Hauppauge
Video Capture Adapter you are using. The dialog contains 3 drop-down list boxes
which allow you to select the Input Source, Region, and Input Format. The
dialog also contains two entryfields for setting the Frequency and Channel and
a slider for setting the Fine Tune. If you select an Input Source which does
not support the tuner the tuner options (Region, Frequency, Channel, and Fine
Tune) are disabled.
ΓòÉΓòÉΓòÉ 5. TV Setup Menu Item ΓòÉΓòÉΓòÉ
Selecting this option invokes a setup notebook for the Hauppauge Video Capture
Adapter. The notebook allows you to re-align the TV, tune TV, set the audio and
visual preferences, set the color key, and setup the capture. The notebook has
full on-line help for more details.
ΓòÉΓòÉΓòÉ 6. Capture Menu ΓòÉΓòÉΓòÉ
This submenu contains the following options : -
Convert in C
Convert in ASM
Capture F6
ΓòÉΓòÉΓòÉ 6.1. Convert in C ΓòÉΓòÉΓòÉ
When this option is selected the conversion from YUV422 data to RGB data is
converted using a routine written in C. This routine is very slow and only
works on systems with 256 colors. It is only included in the sample so that you
can see the benefits of coding the conversion in assembler or using the code
supplied in the IBM Developer's Connection Device Driver Toolkit.
ΓòÉΓòÉΓòÉ 6.2. Convert in ASM ΓòÉΓòÉΓòÉ
When this option is selected the conversion from YUV422 data to RGB data is
converted using a routine written in assembler. This routine is contained in
the IBM Developer's Connection Device Driver Toolkit. This routine is very fast
compared to the simple C conversion routine also supplied (for systems with 256
colors only).
ΓòÉΓòÉΓòÉ 6.3. Capture ΓòÉΓòÉΓòÉ
When this option is selected (either from the menu, pressing the F6 button, or
pressing both mouse buttons) a single frame capture is performed and
subsequently displayed as a bitmap in a dialog box. You have the option to save
this file.
ΓòÉΓòÉΓòÉ 7. Key Assigments ΓòÉΓòÉΓòÉ
F1 Help
F3 Quit
F4 Tune
F5 TV Setup
F6 Capture