zAviCapture Class Reference
DERIVED CLASS FOR AVI CAPTURE CONTROLS.
More...
#include <Zclass.h>
List of all members.
Detailed Description
DERIVED CLASS FOR AVI CAPTURE CONTROLS.
% Provides the functionality to handle the details of streaming audio and video capture to AVI files. This frees your application from involvement in the AVI file format, video and audio buffer management, and the low-level access of video and audio device drivers
Member Function Documentation
| bool zAviCapture::Connect |
( |
void |
|
) |
|
Connects a capture window to a capture driver.
- Returns:
- __continue if successful or __stop if the specified capture driver cannot be connected to the capture window.
| bool zAviCapture::Connect |
( |
int |
iIndex |
) |
[inline] |
Connects a capture window to a capture driver.
- Parameters:
-
| iIndex | - Index of the capture driver. The index can range from 0 through 9. |
- Returns:
- __continue if successful or __stop if the specified capture driver cannot be connected to the capture window.
| void zAviCapture::Disconnect |
( |
void |
|
) |
|
Disconnects a capture driver from a capture window.
| void zAviCapture::DlgVideoCompression |
( |
void |
|
) |
[inline] |
Displays a dialog box in which the user can select a compressor to use during the capture process. The list of available compressors can vary with the video format selected in the capture driver's Video Format dialog box.
| void zAviCapture::DlgVideoDisplay |
( |
void |
|
) |
[inline] |
Displays a dialog box in which the user can set or adjust the video output. This dialog box might contain controls that affect the hue, contrast, and brightness of the displayed image, as well as key color alignment.
| void zAviCapture::DlgVideoFormat |
( |
void |
|
) |
[inline] |
Displays a dialog box in which the user can select the video format. The Video Format dialog box might be used to select image dimensions, bit depth, and hardware compression options.
| void zAviCapture::DlgVideoSource |
( |
void |
|
) |
[inline] |
Displays a dialog box in which the user can control the video source. The Video Source dialog box might contain controls that select input sources; alter the hue, contrast, brightness of the image; and modify the video quality before digitizing the images into the frame buffer.
| void zAviCapture::FileSaveDIB |
( |
LPCTSTR |
fname |
) |
[inline] |
Copies the current frame to a DIB file
| bool zAviCapture::GrabFrame |
( |
void |
|
) |
[inline] |
Retrieves and displays a single frame from the capture driver. After capture, overlay and preview are disabled.
- Returns:
- __continue if successful or __stop otherwise.
| bool zAviCapture::GrabFrameNoStop |
( |
void |
|
) |
[inline] |
Fills the frame buffer with a single uncompressed frame from the capture device and displays it. Unlike with the GrabFrame method, the state of overlay or preview is not altered by this message.
| bool zAviCapture::isConnected |
( |
void |
|
) |
[inline] |
- Returns:
- TRUE if successful or FALSE if the specified capture driver cannot be connected to the capture window.
| bool zAviCapture::isNotConnected |
( |
void |
|
) |
[inline] |
- Returns:
- __stop if successful or __continue if the specified capture driver cannot be connected to the capture window.
| void zAviCapture::Overlay |
( |
bool |
mode = __start |
) |
[inline] |
Enables or disables preview mode. In preview mode, frames are transferred from the capture hardware to system memory and then displayed in the capture window using GDI functions.
- Parameters:
-
| mode | - Preview flag. Specify __start for this parameter to enable preview mode or __stop to disable it. |
| void zAviCapture::Preview |
( |
bool |
mode = __start |
) |
[inline] |
Enables or disables preview mode. In preview mode, frames are transferred from the capture hardware to system memory and then displayed in the capture window using GDI functions.
- Parameters:
-
| mode | - Preview flag. Specify __start for this parameter to enable preview mode or __stop to disable it. |
| void zAviCapture::PreviewRate |
( |
int |
milliseconds |
) |
[inline] |
Sets the frame display rate in preview mode.
- Parameters:
-
| milliseconds | - Rate, in milliseconds, at which new frames are captured and displayed. |
| void zAviCapture::PreviewScale |
( |
bool |
mode = __start |
) |
[inline] |
Enables or disables scaling of the preview video images. If scaling is enabled, the captured video frame is stretched to the dimensions of the capture window.
- Parameters:
-
| mode | - Preview scaling flag. Specify __start for this parameter to stretch preview frames to the size of the capture window or __stop to display them at their natural size. |
| void zAviCapture::SequenceNoFile |
( |
void |
|
) |
[inline] |
Initiates streaming video capture without writing data to a file.
| void zAviCapture::Status |
( |
LPCAPSTATUS |
cs |
) |
[inline] |
Retrieves the status of the capture window.
- Parameters:
-
| cs | - Pointer to a CAPSTATUS structure. |
| const BITMAPINFO* zAviCapture::VideoFormat |
( |
void |
|
) |
|
Retrieves a copy of the video format in use.
| unsigned long zAviCapture::VideoFormatSize |
( |
void |
|
) |
[inline] |
Retrieves the size required for the video format.
- Returns:
- the size, in bytes, of the video format or zero if the capture window is not connected to a capture driver. For video formats that require a palette, the current palette is also returned.
The documentation for this class was generated from the following file: