#include <math.h>
#include "utils_tests.h"
int main (void)
{
int return_code = 0;
if (!dct || !in || !dctout) {
return_code = 1;
return return_code;
}
for (i = 0; i < n_iters; i++) {
for (j = 0; j < in->
length; j++) {
return_code += (fabsf(in->
data[j] - out->
data[j]) > 10.e-4);
}
}
return return_code;
}
Global aubio include file.
struct _aubio_dct_t aubio_dct_t
DCT object.
void del_aubio_dct(aubio_dct_t *s)
delete DCT object
void aubio_dct_rdo(aubio_dct_t *s, const fvec_t *input, fvec_t *idct_output)
compute backward DCT
void aubio_dct_do(aubio_dct_t *s, const fvec_t *input, fvec_t *dct_output)
compute forward DCT
aubio_dct_t * new_aubio_dct(uint_t size)
create new DCT computation object
fvec_t * new_fvec(uint_t length)
fvec_t buffer creation function
void del_fvec(fvec_t *s)
fvec_t buffer deletion function
void fvec_print(const fvec_t *s)
print out fvec data
smpl_t * data
data vector of length fvec_t.length
uint_t length
length of buffer
unsigned int uint_t
unsigned integer