AVI Make Compressed Stream Function (AVIMakeCompressedStream)

Private Declare Function AVIMakeCompressedStream Lib "avifil32.dll" (ByRef ppsCompressed As Long, ByVal psSource As Long, ByRef lpOptions As AVICOMPRESSOPTIONS, ByVal pclsidHandler As Long) As Long
'function creates a compressed stream from an uncompressed stream and a compression filter, and returns the address of a pointer to the compressed stream. This function supports audio and video compression.
'Parameters
'   ppsCompressed Pointer to a buffer that receives the compressed stream pointer.
'   psSource Pointer to the stream to be compressed.
'   lpOptions Pointer to a structure that identifies the type of compression to use and the options to apply. You can specify video compression by identifying an appropriate handler in the AVICOMPRESSOPTIONS structure. For audio compression, specify the compressed data format.
'   pclsidHandler Pointer to a class identifier used to create the stream.

' Returns
AVIERR_OK

Value Description
AVIERR_NOCOMPRESSOR A suitable compressor cannot be found.
AVIERR_MEMORY There is not enough memory to complete the operation.
AVIERR_UNSUPPORTED Compression is not supported for this type of data. This error might be returned if you try to compress data that is not audio or video.

Copyright 2004-2010 Excalibur software Solutions All rights reserved

Note: Any unsolicited email sent to Excalibur Software Solutions or any members of Excalibur Software Solutions, will be archived and a fee of $5.00 dollars US per email per month will be charged to the content owner of said email. The Content Owner must inform Excalibur Software Solutions in writing; they no longer require archive services for each email archived within 30 days of cancelation. The content holder is defined as the entities represented in email regardless of sender. The sender is the representative of the content holder.