Export (0) Print
Expand All
Expand Minimize

ICOpenFunction function

The ICOpenFunction function opens a compressor or decompressor defined as a function.

Syntax


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.

Value Meaning
ICMODE_COMPRESSCompressor will perform normal compression.
ICMODE_DECOMPRESSDecompressor will perform normal decompression.
ICMODE_DRAWDecompressor will decompress and draw the data directly to hardware.
ICMODE_FASTCOMPRESSCompressor will perform fast (real-time) compression.
ICMODE_FASTDECOMPRESSDecompressor will perform fast (real-time) decompression.
ICMODE_QUERYQueries the compressor or decompressor for information.

 

lpfnHandler

Pointer to the function used as the compressor or decompressor.

Return value

Returns a handle to a compressor or decompressor if successful or zero otherwise.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Vfw.h

Library

Vfw32.lib

DLL

Msvfw32.dll

See also

Video Compression Manager
Video Compression Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft