Mercurial > hg > svcore
comparison data/fileio/FFTFuzzyAdapter.cpp @ 847:2d53205f70cd tonioni
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 14:37:01 +0000 |
parents | e802e550a1f2 |
children | 59e7fe1b1003 |
comparison
equal
deleted
inserted
replaced
841:226733f3cf3f | 847:2d53205f70cd |
---|---|
41 size_t xratio = windowIncrement / m_server->getWindowIncrement(); | 41 size_t xratio = windowIncrement / m_server->getWindowIncrement(); |
42 size_t yratio = m_server->getFFTSize() / fftSize; | 42 size_t yratio = m_server->getFFTSize() / fftSize; |
43 | 43 |
44 while (xratio > 1) { | 44 while (xratio > 1) { |
45 if (xratio & 0x1) { | 45 if (xratio & 0x1) { |
46 std::cerr << "ERROR: FFTFuzzyAdapter: Window increment ratio " | 46 cerr << "ERROR: FFTFuzzyAdapter: Window increment ratio " |
47 << windowIncrement << " / " | 47 << windowIncrement << " / " |
48 << m_server->getWindowIncrement() | 48 << m_server->getWindowIncrement() |
49 << " must be a power of two" << std::endl; | 49 << " must be a power of two" << endl; |
50 assert(!(xratio & 0x1)); | 50 assert(!(xratio & 0x1)); |
51 } | 51 } |
52 ++m_xshift; | 52 ++m_xshift; |
53 xratio >>= 1; | 53 xratio >>= 1; |
54 } | 54 } |
55 | 55 |
56 while (yratio > 1) { | 56 while (yratio > 1) { |
57 if (yratio & 0x1) { | 57 if (yratio & 0x1) { |
58 std::cerr << "ERROR: FFTFuzzyAdapter: FFT size ratio " | 58 cerr << "ERROR: FFTFuzzyAdapter: FFT size ratio " |
59 << m_server->getFFTSize() << " / " << fftSize | 59 << m_server->getFFTSize() << " / " << fftSize |
60 << " must be a power of two" << std::endl; | 60 << " must be a power of two" << endl; |
61 assert(!(yratio & 0x1)); | 61 assert(!(yratio & 0x1)); |
62 } | 62 } |
63 ++m_yshift; | 63 ++m_yshift; |
64 yratio >>= 1; | 64 yratio >>= 1; |
65 } | 65 } |