Controlling Compressed Source Devices
Some video digitizer components may provide functions that allow applications to work with digitizing devices that can provide compressed image data directly. Such devices allow applications to retrieve compressed image data without using the Image Compression Manager. However, in order to display images from the compressed data stream, there must be an appropriate decompressor component available to decompress the image data.Video digitizers that can support compressed source devices set the
digiOutDoesCompressflag to 1 in their capability flags (see "Capability Flags" beginning on page 8-14 for more information about these flags).Applications can use the
VDGetCompressionTypesfunction to determine the image-compression capabilities of a video digitizer. TheVDSetCompressionfunction allows applications to set some parameters that govern image compression.Applications control digitization by calling the
VDCompressOneFrameAsyncfunction, which instructs the video digitizer to create one frame of compressed image data. TheVDCompressDonefunction returns that frame. When an application is done with a frame, it calls theVDReleaseCompressBufferfunction to free the buffer. An application can force the digitizer to place a key frame into the sequence by calling theVDResetCompressSequencefunction. Applications can turn compression on and off by callingVDSetCompressionOnOff.Applications can obtain the digitizer's image description structure by calling the
VDGetImageDescriptionfunction. Applications can set the digitizer's time base by calling theVDSetTimeBasefunction.All of the digitizing functions described in this section support only asynchronous digitization. That is, the video digitizer works independently to digitize each frame. Applications are free to perform other work while the digitizer works on each frame.
The video digitizer component manages its own buffer pool for use with these functions. In this respect, these functions differ from the other video digitizer functions that support asynchronous digitization (see "Controlling Digitization" beginning on page 8-52 for more information about these functions).
Subtopics
- VDGetCompressionTypes
- VDSetCompression
- VDSetCompressionOnOff
- VDCompressOneFrameAsync
- VDCompressDone
- VDReleaseCompressBuffer
- VDGetImageDescription
- VDResetCompressSequence
- VDSetTimeBase