Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ICDecompressBegin(3mms)

ICDecompressEnd(3mms)

ICDecompressPrepareHeader(3mms)

ICDecompressUnprepareHeader(3mms)  —  Subroutines

Name

ICDecompressUnprepareHeader --- Unprepares decompression headers. 

Syntax

#include <mme/mme_api.h>
MMRESULT ICDecompressUnprepareHeader(HIC hic,
                 LPBITMAPINFOHEADER lpbiOutput,
                 LPVOID lpdata,
                 LPBITMAPINFOHEADER lpbiInput,
                 LPVOID lpBits);

 

Arguments

HIC hic
Specifies a handle to a decompressor.

LPBITMAPINFOHEADER lpbiOutput
Specifies a pointer to a BITMAPINFOHEADER data structure holding the output format.  The BITMAPINFOHEADER data structure must be allocated with the mmeAllocMem function before being passed to the ICDecompressUnprepareHeader function.  See the mmeAllocMem(3mms) reference page for more information about allocating memory for data structures. 

LPVOID lpData
Specifies a pointer to the output data buffer.  The data buffer must be allocated with the mmeAllocBuffer function before being passed to the ICDecompressUnprepareHeader function.  See the mmeAllocBuffer(3mms) reference page for more information about allocating memory for data buffers

LPBITMAPINFOHEADER lpbiInput
Specifies a pointer to a BITMAPINFOHEADER data structure containing the input format. 

The BITMAPINFOHEADER data structure must be allocated with the mmeAllocMem function before being passed to the ICDecompressUnprepareHeader function.  See the mmeAllocMem(3mms) reference page for more information about allocating memory for data structures. 

LPVOID lpBits
Specifies a pointer to the input data buffer. The data buffer must be allocated with the mmeAllocBuffer function before being passed to the ICDecompressUnprepareHeader function.  See the mmeAllocBuffer(3mms) reference page for more information about allocating memory for data buffers. 

Description

The ICDecompressUnprepareHeader function unprepares buffers prepared with ICDecompressPrepareHeader

This function must be called before ICDecompressEnd and after all decompression operations have completed and all buffers have been returned to the application. 

Extensions

Digital extension to the Microsoft multimedia API specification. 

Return Value

Returns ICERR_OK if the function is successful; otherwise, it returns one of the following error codes:

Error Code Description
ICERR_BADHANDLE The hic argument is invalid, the decompressor is not open, or the decompressor is not open for decompression. 
ICERR_BADPARAM The lpbiInput or lpbiOutput, or lpData or lpBits arguments are NULL; or the hardware cannot be properly set up for the operation.  The parameters are not the same as those specified in the ICDecompressBegin call (with the exception of the biSizeImage fields).  The buffers have not been previously prepared. 
ICERR_CANTUPDATE The decompressor is not in operation, that is, ICDecompressBegin has not yet been called or ICDecompressEnd has been called. The buffer should be unprepared before calling ICDecompressEnd.  Some decompressors may choose to unprepare all prepared headers when ICDecompressEnd is called. 
ICERR_INTERNAL An internal driver error occurred. No more detailed information is available. 

See Also

ICDecompressBegin(3mms), ICDecompressEnd(3mms), ICDecompressPrepareHeader(3mms),

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026