Enumeration Types
The constant HmppResult enumerates the status values returned by HMPP functions, indicating whether an error occurs in the operation.
For details about the valid status values and error information of signal processing functions, see Return Values.
- The enumeration type HmppAlgMode defines the algorithm types used by some functions:
typedef enum { HMPP_ALG_AUTO, // Automatic algorithm selection based on the data scale. HMPP_ALG_DEFAULT, // Direct calculation based on definition. HMPP_ALG_FFT, // Use FFT to accelerate computing. } HmppAlgMode;
- The enumeration type HmppNormMode defines the algorithm types used by some functions:
typedef enum { HMPP_NORM_NORMAL, HMPP_NORM_BIASED, HMPP_NORM_UNBIASED, } HmppNormMode;
- The enumeration type HmppCmpOp defines the relational operator types in the threshold function:
typedef enum { HMPP_CMP_LESS, // When src[i] < level, assign the value of level to dst[i]. Otherwise, assign the value of src[i] to dst[i]. HMPP_CMP_GREATER // When src[i] > level, assign the value of level to dst[i]. Otherwise, assign the value of src[i] to dst[i]. } HmppCmpOp;
- The enumeration type HmppRoundMode defines the rounding modes used in the conversion function:
typedef enum { HMPP_RND_ZERO, // Round to zero. A floating-point input number is forcibly converted to integer output. HMPP_RND_NEAR, // Round to the nearest even number (banker's rounding). HMPP_RND_FINANCIAL // Round off. } HmppRoundMode;
- The enumeration type HmppHintAlgorithm defines the calculation methods used in some functions. For example, the calculation is fast but the accuracy is low, or the calculation is slow while the accuracy is ensured:
typedef enum { HMPP_ALG_HINT_NONE, //Same as HmppAlgHintAccurate. The accuracy is ensured, but the calculation speed is slow. HMPP_ALG_HINT_FAST, // Fast but less accurate calculation HMPP_ALG_HINT_ACCURATE // Accurate but slow calculation } HmppHintAlgorithm;
- The enumeration type HmppZCType defines the calculation method types used in the function for computing the number of times of zero crossing:
typedef enum { HMPP_ZCR, HMPP_ZCX_OR, HMPP_ZCC } HmppZCType;
Parent topic: Structures and Enumeration Types