ImageGear Professional v18.2 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Utility Functions > IG_util_MMX_usage_set |
This function tells ImageGear whether or not to optimize for MMX hardware.
Copy Code
|
|
---|---|
AT_ERRCOUNT LACCUAPI IG_util_MMX_usage_set(BOOL bMMXUsage); |
Name | Type | Description |
bMMXUsage | BOOL | Set to TRUE to turn on MMX optimization; FALSE to turn off MMX optimization. |
Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.
This function does not process image pixels.
JPEG
The JPEG sample demonstrates loading images with or without MMX support. |
Copy Code
|
|
---|---|
AT_ERRCOUNT nErrcount; bMMXusage = TRUE; nErrcount = IG_util_MMX_usage_set(bMMXusage); |
Set lpbMMXUsage to TRUE to instruct ImageGear to optimize for MMX technology if the computer contains MMX hardware.
If you set bMMXUsage = TRUE, MMX technology will be used if it is detected. If it is not detected, no error will be generated, and MMX optimization will not be used.
Currently, the JPEG Lossy Compression is the target area for optimization.
See also IG_util_MMX_usage_get() function.