ICSetState(3mms) — Subroutines
Name
ICSetState --- Set current state of a compressor or decompressor
Syntax
#include <mme/mme_api.h>
void ICSetState(HIC hic,
LPVOID pv,
DWORD cb);
Arguments
HIC hic
Specifies a handle to a compressor or decompressor.
LPVOID pv
Specifies a pointer to a buffer containing the state data to be set. The data buffer must be allocated with the mmeAllocBuffer function before being passed to the ICSetState function.
DWORD cb
Specifies the size in bytes of the buffer containing the state data.
Description
The ICSetState function sets the current state of a compressor or decompressor. This function is only valid when decompressing an image into 8-bit X image format.
See the Multimedia Services for Digital UNIX Programmer’s Guide, Appendix B, for device state information.
Extensions
None.
Return Values
Returns ICERR_OK if the function is successful; otherwise, it returns one of the following error codes:
ICERR_BADHANDLE@T{ The hic argument is invalid or the compressor or decompressor is not open. T} ICERR_BADPARAM@T{ The pv argument is NULL. T} ICERR_CANTUPDATE@T{ The attribute cannot be modified. T} ICERR_UNSUPPORTED@T{ The function is not supported. T}