Home
last modified time | relevance | path

Searched refs:DFT_DATA_LENGTH (Results 1 – 5 of 5) sorted by relevance

/third_party/libsnd/tests/
Ddft_cmp.c32 #define DFT_SPEC_LENGTH (DFT_DATA_LENGTH / 2)
43 { static double orig [DFT_DATA_LENGTH] ; in dft_cmp_float()
44 static double test [DFT_DATA_LENGTH] ; in dft_cmp_float()
47 if (len != DFT_DATA_LENGTH) in dft_cmp_float()
71 if (len != DFT_DATA_LENGTH) in dft_cmp_double()
102 { static double cos_angle [DFT_DATA_LENGTH] = { 0.0 } ; in dft_magnitude()
103 static double sin_angle [DFT_DATA_LENGTH] ; in dft_magnitude()
110 for (n = 0 ; n < DFT_DATA_LENGTH ; n++) in dft_magnitude()
111 { cos_angle [n] = cos (2.0 * M_PI * n / DFT_DATA_LENGTH) ; in dft_magnitude()
112 sin_angle [n] = -1.0 * sin (2.0 * M_PI * n / DFT_DATA_LENGTH) ; in dft_magnitude()
[all …]
Dfloating_point_test.tpl49 static double double_data [DFT_DATA_LENGTH] ;
50 static double double_test [DFT_DATA_LENGTH] ;
52 static float float_data [DFT_DATA_LENGTH] ;
53 static float float_test [DFT_DATA_LENGTH] ;
55 static double double_data [DFT_DATA_LENGTH] ;
56 static short short_data [DFT_DATA_LENGTH] ;
57 static int int_data [DFT_DATA_LENGTH] ;
211 gen_windowed_sine_float (float_data, DFT_DATA_LENGTH, 0.9999) ;
215 sfinfo.frames = DFT_DATA_LENGTH ;
222 test_write_float_or_die (file, 0, float_data, DFT_DATA_LENGTH, __LINE__) ;
[all …]
Dlong_read_write_test.c116 …mes in file (too short). (%" PRId64 " should be %d)\n", __LINE__, sfinfo.frames, DFT_DATA_LENGTH) ; in short_lrw_test()
162 …rames in file (too int). (%" PRId64 " should be %d)\n", __LINE__, sfinfo.frames, DFT_DATA_LENGTH) ; in int_lrw_test()
208 …mes in file (too float). (%" PRId64 " should be %d)\n", __LINE__, sfinfo.frames, DFT_DATA_LENGTH) ; in float_lrw_test()
254 …es in file (too double). (%" PRId64 " should be %d)\n", __LINE__, sfinfo.frames, DFT_DATA_LENGTH) ; in double_lrw_test()
Ddft_cmp.h20 #define DFT_DATA_LENGTH (8192) macro
Dcompression_size_test.c49 { static float float_data [DFT_DATA_LENGTH] ; in vorbis_test()