ICCompressEnd

The ICCompressEnd macro notifies a video compression driver to end compression and free resources allocated for compression. You can use this macro or explicitly call the ICM_COMPRESS_END message.

DWORD ICCompressEnd(
  hic  
);
 

Parameters

hic
Handle of the compressor.

Return Values

Returns ICERR_OK if successful or an error otherwise.

Remarks

VCM saves the settings of the most recent ICCompressBegin macro. ICCompressBegin and ICCompressEnd do not nest. If your driver receives the ICM_COMPRESS_BEGIN message before compression is stopped with the ICM_COMPRESS_END message, it should restart compression with new parameters.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in vfw.h.

See Also

Video Compression Manager Overview, Video Compression Macros, ICCompressBegin, ICM_COMPRESS_END