Mercurial > hg > libxtract
comparison xtract/libxtract.h @ 98:ca40a0dc29d6
Removed fftw_plan from xtraction functions. Created new init function xtract_init_fft() for creating plans, which have global scope. Updated examples to reflect the change. New configure option: --with-fft_optimisation (0 = FFTW_ESTIMATE, 1 = FFTW_MEASURE, 2 = FFTW_PATIENT).
author | Jamie Bullock <jamie@postlude.co.uk> |
---|---|
date | Sat, 06 Oct 2007 16:36:00 +0000 |
parents | 5fadbacdb2a7 |
children | a32738e9d955 |
comparison
equal
deleted
inserted
replaced
97:a159098a759e | 98:ca40a0dc29d6 |
---|---|
259 * | 259 * |
260 * \param *data: a pointer to the start of the input data (usually the first element in an array) | 260 * \param *data: a pointer to the start of the input data (usually the first element in an array) |
261 * | 261 * |
262 * \param N: the number of elements to be processed | 262 * \param N: the number of elements to be processed |
263 * | 263 * |
264 * \param *argv: an abitrary number of additional arguments, used to pass additional parameters to the function being called | 264 * \param *argv: an abitrary number of additional arguments, used to pass additional parameters to the function being called. All arguments are compulsary! |
265 * | 265 * |
266 * \param *result: a pointer to the first element in the result | 266 * \param *result: a pointer to the first element in the result |
267 * | 267 * |
268 * Each function will iterate over N array elements, the first of which is | 268 * Each function will iterate over N array elements, the first of which is |
269 * pointed to by *data. It is up to the calling function to ensure that the array is in the format expected by the function being called. | 269 * pointed to by *data. It is up to the calling function to ensure that the array is in the format expected by the function being called. |
324 * \param sr: The sample audio sample rate | 324 * \param sr: The sample audio sample rate |
325 * \param *band_limits: a pointer to an array of BARK_BANDS ints | 325 * \param *band_limits: a pointer to an array of BARK_BANDS ints |
326 */ | 326 */ |
327 int xtract_init_bark(int N, float sr, int *band_limits); | 327 int xtract_init_bark(int N, float sr, int *band_limits); |
328 | 328 |
329 /** \brief An initialisation function for functions using FFT | |
330 * | |
331 * This function initialises global data structures used by functions requiring FFT functionality. It can be called multiple times with different feature names. Calling it more than once with the same feature name is not a valid operation and will result in a memory leak. | |
332 * | |
333 * \param N: the size of the FFT | |
334 * \param feature_name: the name of the feature the FFT is being used for, | |
335 * e.g. XTRACT_DCT | |
336 * | |
337 */ | |
338 int xtract_init_fft(int N, int feature_name); | |
339 | |
329 /* \brief A function to build an array of function descriptors */ | 340 /* \brief A function to build an array of function descriptors */ |
330 void *xtract_make_descriptors(); | 341 void *xtract_make_descriptors(); |
331 | 342 |
332 /* \brief A function to free an array of function descriptors */ | 343 /* \brief A function to free an array of function descriptors */ |
333 int xtract_free_descriptors(void *fd); | 344 int xtract_free_descriptors(void *fd); |