comparison xtract/libxtract.h @ 43:4a36f70a76e9

Numerous fixes and enhancements, see ChangeLog.
author Jamie Bullock <jamie@postlude.co.uk>
date Fri, 15 Dec 2006 21:17:12 +0000
parents 0ea4d6430cfc
children e8f4c56de591
comparison
equal deleted inserted replaced
42:84e69b155098 43:4a36f70a76e9
51 * 51 *
52 * Defines a very simple API that provides access to the functions in the library 52 * Defines a very simple API that provides access to the functions in the library
53 * @{ 53 * @{
54 */ 54 */
55 55
56 #define XTRACT_FEATURES 44 56 #define XTRACT_FEATURES 45
57 57
58 #define LOG_LIMIT 10e-10 58 #define LOG_LIMIT 10e-10
59 #define VERY_BIG_NUMBER 2e10 59 #define VERY_BIG_NUMBER 2e10
60 #define SR_LIMIT 192000 60 #define SR_LIMIT 192000
61 #define BARK_BANDS 26 61 #define BARK_BANDS 26
87 INHARMONICITY, 87 INHARMONICITY,
88 POWER, 88 POWER,
89 ODD_EVEN_RATIO, 89 ODD_EVEN_RATIO,
90 SHARPNESS, 90 SHARPNESS,
91 SLOPE, 91 SLOPE,
92 LOWEST_MATCH, 92 LOWEST,
93 HPS, 93 HPS,
94 F0, 94 F0,
95 FAILSAFE_F0,
95 FLUX, 96 FLUX,
96 ATTACK_TIME, 97 ATTACK_TIME,
97 DECAY_TIME, 98 DECAY_TIME,
98 DELTA_FEATURE, 99 DELTA_FEATURE,
99 AUTOCORRELATION, 100 AUTOCORRELATION,
176 \endverbatim 177 \endverbatim
177 * The calling function may additionally make some tests against the value returned by xtract 178 * The calling function may additionally make some tests against the value returned by xtract
178 * 179 *
179 */ 180 */
180 #ifdef XTRACT 181 #ifdef XTRACT
181 extern int(*xtract[XTRACT_FEATURES])(float *data, int N, void *argv, float *result); 182 extern int(*xtract[XTRACT_FEATURES])(const float *data, const int N, const void *argv, float *result);
182 183
183 /** \brief An array of pointers to function help strings 184 /** \brief An array of pointers to function help strings
184 * 185 *
185 * Defined in libxtract.c. As a minimum this will contain pointers to the names of all of the feature extraction functions in the library. This is intended as a 'quick reference' to be queried as necessary. 186 * Defined in libxtract.c. As a minimum this will contain pointers to the names of all of the feature extraction functions in the library. This is intended as a 'quick reference' to be queried as necessary.
186 */ 187 */