ICOPEN


typedef struct {
    DWORD dwSize;
    DWORD fccType;
    DWORD fccHandler;
    DWORD dwVersion;
    DWORD dwFlags;
    DWORD dwError;
} ICOPEN;

Contains information about the data stream being compressed or decompressed, the version number of the driver, and how the driver is used.

dwSize

Size, in bytes, of the structure.

fccType

Four-character code indicating the type of stream being compressed or decompressed. Specify VIDC for video streams.

fccHandler

Four-character code identifying a specific compressor.

dwVersion

Version of the installable driver interface used to open the driver.

dwFlags

Applicable flags indicating why the driver is opened. The following values are defined:

ICMODE_COMPRESS

Indicates the driver is opened to compress data.

ICMODE_DECOMPRESS

Indicates the driver is opened to decompress data.

ICMODE_QUERY

Indicates the driver is opened for informational purposes, rather than for compression.

ICMODE_DRAW

Indicates the device driver is opened to decompress data directly to hardware.


dwError

Error return values.

This structure is passed to video capture drivers when they are opened. This allows a single installable driver to function as either an installable compressor or a video capture device. By examining the fccType member of the ICOPEN structure, the driver can determine its function. For example, a fccType value of VIDC indicates that it is opened as an installable video compressor.