Previous | Contents | Index |
#include <mme/mme_api.h> MMRESULT ICGetSharpening(HIC hic) |
The ICGetSharpening function obtains the current contrast value.Extensions The ICGetSharpening function is a Compaq extension to the Microsoft multimedia API specification.
Returns the current sharpening value if the function is successful; otherwise, it returns the following error code:
Error Code | Description |
---|---|
ICERR_BADHANDLE | The hic argument is invalid or the compressor or decompressor is not open. |
#include <mme/mme_api.h> MMRESULT ICGetState(HIC hic, LPVOID pv, DWORD cb); |
LPVOID pv
Specifies a pointer to a buffer used to return the state data. The data
structure must be allocated with the
mmeAllocMem
function before being passed to the
ICGetState
function.
DWORD cb
Specifies the size (in bytes) of the state data buffer.
The ICGetState function obtains the current state of a compressor or decompressor. Use the ICGetStateSize function before calling the ICGetState function to determine the size of the buffer to allocate for the call.Extensions None.
Returns ICERR_OK if the function is successful; otherwise, it returns the following error code:
Error Code | Description |
---|---|
ICERR_BADHANDLE | The hic argument is invalid or the compressor or decompressor is not open. |
#include <mme/mme_api.h> MMRESULT ICGetStateSize(HIC hic) |
The ICGetStateSize function obtains the size of the state data used by a compressor or decompressor. Use the ICGetStateSize function to get the size of the state data for the ICGetState and ICSetState buffers.Extensions None.
Returns the number of bytes used by the state data if the function is successful; otherwise, it returns the following error code:
Error Code | Description |
---|---|
ICERR_BADHANDLE | The hic argument is invalid or the compressor or decompressor is not open. |
#include <mme/mme_api.h> BOOL ICInfo(DWORD fccType, DWORD fccHandler, ICINFO *lpicinfo); |
DWORD fccHandler
Identifies a specific compressor or decompressor about which to get
information. If this value is zero, then information about the first
compressor or decompressor found of the type specified in the
fccType argument is returned.
If this value is a number between 1 and the number of installed compressors of the type specified in the fccType argument, then information about the compressor or decompressor with that number is returned.
If this value is a FOURCC, then information about the compressor or decompressor denoted by that FOURCC is returned. The smallest possible FOURCC is four spaces " ", which converts to 128. Therefore, the greatest number of installed compressors is 127, from 1 to 127. The following shows available options and their values:
Option | FOURCC Value |
---|---|
FullVideo Supreme JPEG | " J321 " |
FullVideo Supreme | " J301 " |
Software JPEG CODEC | " SJPG " |
ICINFO *lpicinfo
Specifies a pointer to an ICINFO data structure used
to return information about the compressor. The ICINFO
data structure must be allocated with the
mmeAllocMem
function before being passed to
ICInfo
function.
The ICInfo function returns information about specific installed compressors and decompressors, or it enumerates the compressors installed.Extensions None.
Returns TRUE if the function is successful; otherwise, it returns FALSE.
#include <mme/mme_api.h> HIC ICLocate(DWORD fccType, DWORD fccHandler, LPBITMAPINFOHEADER lpbiIn, LPBITMAPINFOHEADER lpbiOut, WORD wFlags); |
DWORD fccHandler
Specifies a single preferred handler of the given type that should be
tried first. Typically, this handler comes from the stream header in an
AVI file or from the ICINFO structure.
If this value is:
LPBITMAPINFOHEADER lpbiIn
Specifies a pointer to a BITMAPINFOHEADER data
structure defining the input format. A compressor handle will not be
returned unless it can handle this format.
The BITMAPINFOHEADER data structure must be allocated with the mmeAllocMem function before being passed to the ICLocate function. See Chapter 2 for more information about the memory allocation functions.
LPBITMAPINFOHEADER lpbiOut
Specifies NULL or a pointer to a BITMAPINFOHEADER data
structure defining an optional output format. If lpbiOut is
not NULL, a compressor handle will not be returned unless it can create
this output option.
The BITMAPINFOHEADER data structure must be allocated with the mmeAllocMem function before being passed to the ICLocate function. See Chapter 2 for more information about the memory allocation functions.
WORD wFlags
Specifies flags defining the use of the compressor or decompressor.
The following flags are defined:
ICMODE_COMPRESS
Indicates the compressor should be able to compress an image with a format defined by lpbiIn to the format defined by lpbiOut.
ICMODE_DECOMPRESS
Indicates the decompressor should be able to decompress an image with a format defined by lpbiIn to the format defined by lpbiOut.
ICMODE_DRAW
Indicates the decompressor should be able to decompress an image with a format defined by lpbiIn and draw it directly to hardware. The video option modules do not support IC_DRAW functionality.
The ICLocate function finds a compressor or decompressor that can handle images with the formats specified, or it finds a decompressor that can decompress an image with the specified format directly to hardware. If an appropriate compressor or decompressor is found, it is opened and a handle is returned to the application.Extensions None.
Returns a handle to an open compressor or decompressor if the function is successful; otherwise, it returns zero.
#include <mme/mme_api.h> HIC ICOpen(DWORD fccType, DWORD fccHandler, UINT wMode); |
DWORD fccHandler
Specifies a handler of a given type. Typically, this handler comes from
the stream header in an AVI file or from the ICINFO
structure.
UINT wMode
Specifies flags defining the use of the compressor or decompressor. The
following flags are defined:
ICMODE_COMPRESS
Advises a compressor that it is opened for compression.
ICMODE_DECOMPRESS
Advises a decompressor that it is opened for decompression.
ICMODE_DRAW
Advises a decompressor that it is opened to decompress an image and draw it directly to hardware. The video option modules do not support IC_DRAW functionality.
ICMODE_QUERY
Advises a compressor or decompressor that it is opened to obtain information only.
The ICOpen function opens a compressor or decompressor.Extensions None.
Returns a handle to a compressor or decompressor if the function is successful; otherwise, it returns zero.
#include <mme/mme_api.h> MMRESULT ICSetBrightness(HIC hic, DWORD dwBrightness); |
DWORD dwBrightness
Specifies the brightness value. This value ranges from 0 to 10,000.
The ICSetBrightness function sets the current brightness value. This function is only valid when decompressing an image into 8-bit X image format.Extensions The ICSetBrightness function is a Compaq extension to the Microsoft multimedia API specification.
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 or the compressor or decompressor is not open. |
ICERR_BADPARAM | The value of the dwBrightness argument is out of range. |
ICERR_CANTUPDATE | The attribute cannot be modified. |
ICERR_UNSUPPORTED | The function is not supported. |
#include <mme/mme_api.h> MMRESULT ICSetContrast(HIC hic, DWORD dwContrast); |
DWORD dwContrast
Specifies the contrast value. This value ranges from 0 to 10,000.
The ICSetContrast function sets the current contrast value. This function is only valid when decompressing an image into 8-bit X image format.Extensions The ICSetContrast function is a Compaq extension to the Microsoft multimedia API specification.
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 or the compressor or decompressor is not open. |
ICERR_BADPARAM | The value of the dwContrast argument is out of range. |
ICERR_CANTUPDATE | The attribute cannot be modified. |
ICERR_UNSUPPORTED | The function is not supported. |
#include <mme/mme_api.h> MMRESULT ICSetMirror(HIC hic, BOOL mirror); |
BOOL mirror
Specifies the mirroring value. This value can be either TRUE or FALSE.
The ICSetMirror function sets the current mirroring value. This function is only valid when decompressing an image into 8-bit X image format.Extensions The ICSetMirror function is a Compaq extension to the Microsoft multimedia API specification.
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 or the compressor or decompressor is not open. |
ICERR_BADPARAM | The value of the mirror argument is invalid. |
ICERR_CANTUPDATE | The attribute cannot be modified. |
ICERR_UNSUPPORTED | The function is not supported. |
#include <mme/mme_api.h> MMRESULT ICSetSaturation(HIC hic, DWORD dwSaturation); |
DWORD dwSaturation
Specifies the saturation value. This value ranges from 0 to 10,000.
The ICSetSaturation function sets the current saturation value. This function is only valid when decompressing an image into 8-bit X image format.Extensions The ICSetSaturation function is a Compaq extension to the Microsoft multimedia API specification.
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 or the compressor or decompressor is not open. |
ICERR_BADPARAM | The value of the dwSaturation argument is out of range. |
ICERR_CANTUPDATE | The attribute cannot be modified. |
ICERR_UNSUPPORTED | The function is not supported. |
#include <mme/mme_api.h> MMRESULT ICSetSharpening(HIC hic, DWORD dwSharpening); |
DWORD dwSharpening
Specifies the sharpening value. This value ranges from 0 to 10,000.
The ICSetSharpening function sets the current sharpening value. This function is only valid when decompressing an image into 8-bit X image format.Extensions The ICSetSharpening function is a Compaq extension to the Microsoft multimedia API specification.
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 or the compressor or decompressor is not open. |
ICERR_BADPARAM | The value of the dwSharpening argument is out of range. |
ICERR_CANTUPDATE | The attribute cannot be modified. |
ICERR_UNSUPPORTED | The function is not supported. |
#include <mme/mme_api.h> MMRESULT ICSetState(HIC hic, LPVOID pv, DWORD cb); |
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.
The ICSetState function sets the current state of a compressor or decompressor.Extensions None.See Appendix B for device state information.
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 or the compressor or decompressor is not open. |
ICERR_BADPARAM | The pv argument is NULL. |
ICERR_CANTUPDATE | The attribute cannot be modified. |
ICERR_UNSUPPORTED | The function is not supported. |
Previous | Next | Contents | Index |