ICOpenFunction
The ICOpenFunction function opens a compressor or decompressor defined as a function.
HIC ICOpenFunction(
DWORD fccType,
DWORD fccHandler,
UINT wMode,
FARPROC lpfnHandler
);
Parameters
-
fccType
-
Type of compressor to open. For video, the value of this parameter is ICTYPE_VIDEO.
-
fccHandler
-
Preferred handler of the specified type. Typically, this comes from the stream header in an AVI file.
-
wMode
-
Flag to define the use of the compressor or decompressor. The following values are defined:
-
ICMODE_COMPRESS
-
Compressor will perform normal compression.
-
ICMODE_DECOMPRESS
-
Decompressor will perform normal decompression.
-
ICMODE_DRAW
-
Decompressor will decompress and draw the data directly to hardware.
-
ICMODE_FASTCOMPRESS
-
Compressor will perform fast (real-time) compression.
-
ICMODE_FASTDECOMPRESS
-
Decompressor will perform fast (real-time) decompression.
-
ICMODE_QUERY
-
Queries the compressor or decompressor for information.
-
lpfnHandler
-
Address of the function used as the compressor or decompressor.
Return Values
Returns a handle to a compressor or decompressor if successful or zero otherwise.
QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in vfw.h.
Import Library: Use vfw32.lib.
See Also
Video Compression Manager Overview, Video Compression Functions