|
Streaming Capture from an MCI Device
MCI devices augment the capture operation in real-time capture and step-frame
capture. You can specify the MCI device, such as a videodisc or video-cassette
recorder (VCR), acting as the video source for your capture operation by using
the WM_CAP_SET_MCI_DEVICE message (or the capSetMCIDeviceName macro) and specifying the name of the device. You can also retrieve the
device name currently set by using the WM_CAP_GET_MCI_DEVICE message (or the capGetMCIDeviceName macro).
In real-time capture, the capture window synchronizes the capture operation
and compensates for delays associated with positioning the MCI video source and
initializing the resources (such as capture buffers) required for capturing
data. The capture window expects a valid MCI video device to be installed in the
system for capturing data this way.
Specifications for controlling an MCI device are stored in the members of the CAPTUREPARMS structure. MCI-compatible video sources include VCRs and laserdiscs. If the fMCIControl member of this structure is set to TRUE, the capture window coordinates MCI
operation. The capture window uses the parameters specified in the dwMCIStartTime and dwMCIStopTime members to obtain the starting and stopping positions, in milliseconds, of
the sequence. If the value of fMCIControl is FALSE, the video source is not treated as an MCI device and the contents
of dwMCIStartTime and dwMCIStopTime are ignored.
You can use Media Player to quickly verify that an MCI video device is
properly connected to the system. Playing a device with Media Player verifies that the
MCI configuration for the device is correct. If an image appears on the video
display, the video source is connected properly to the capture hardware.
In step-frame capture, the capture window synchronizes the capture operation
and compensates for the delays associated with positioning the MCI video source
and initializing the resources required for capturing data. In addition, the
capture window ensures that no frames are dropped; it steps through the video
frames individually, ensuring that the frame is captured and stored before
capturing the next frame in the video stream.
Specifications for controlling step-frame capture are stored in the members of
the CAPTUREPARMS structure. Step-frame capture uses the following members in addition to the
members used for real-time capture: fStepMCIDevice, fStepCaptureAt2x, and wStepCaptureAverageFrames. If the fStepMCIDevice member is set to TRUE, the capture window coordinates step-frame capture. The
capture window uses the parameters specified in the dwMCIStartTime and dwMCIStopTime members for the starting and stopping positions, in milliseconds, of the
sequence. The capture window uses fStepCaptureAt2x to determine if the capture hardware should capture video frames at twice the
normal resolution and uses wStepCaptureAverageFrames to specify the number of times each frame in the capture operation is sampled.
If fStepMCIDevice is FALSE, real-time capture is used instead of step-frame capture and the
contents of fStepCaptureAt2x, and wStepCaptureAverageFrames are ignored.
If a step-frame capture is specified and fStepCaptureAt2x is set to TRUE, the capture hardware captures at twice the specified
resolution. (The resolutions of both the height and width are doubled.) The software
interpolates the pixels in the higher resolution image to produce the image at
the specified resolution. This form of averaging can improve the edge definition
of images in a frame. You can enable this option if the hardware does not
support hardware-based decimation and you are capturing in the RGB format.
Note If your hardware supports hardware-based decimation, it can capture samples
at a higher rate than specified and use these additional samples to obtain
color definitions that are more consistent with the original image. The additional
samples are discarded after they are used, and the hardware passes samples to
the capture driver at the specified rate.
If a step-frame capture is specified, the wStepCaptureAverageFrames member specifies the number of times a frame is sampled when creating a frame
based on the average sample. This averaging technique reduces the random
digitization noise appearing in a frame. A typical value for the number of averages
is 5.
For more information about MCI, see MCI.
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|