ImageGear for C and C++ on Linux v20.0 - Updated
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


Name Type Description
bMMXUsage BOOL Set to TRUE to turn on MMX optimization; FALSE to turn off MMX optimization.

Return Value:

Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

This function does not process image pixels.

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.  

Is this page helpful?
Yes No
Thanks for your feedback.