38 m_storageType(writer->getStorageType()),
41 (writer->getFileBase(),
45 writer->getHeight() * 2 + m_factorSize))
73 Profiler profiler(
"FFTFileCacheReader::getMagnitudeAt",
false);
88 value = sqrtf(real * real + imag * imag);
116 if (factor != 0) value = mag / factor;
146 value = atan2f(imag, real);
174 real = mag * cosf(phase);
175 imag = mag * sinf(phase);
183 Profiler profiler(
"FFTFileCacheReader::getMagnitudesAt");
188 for (
int i = 0; i < count; ++i) {
189 int y = minbin + i * step;
198 for (
int i = 0; i < count; ++i) {
199 int y = minbin + i * step;
202 values[i] = sqrtf(real * real + imag * imag);
208 for (
int i = 0; i < count; ++i) {
209 int y = minbin + i * step;
239 Profiler profiler(
"FFTFileCacheReader::populateReadBuf",
false);
272 cerr <<
"ERROR: FFTFileCacheReader::populateReadBuf: File read failed: "
float getNormalizationFactor(int col) const
void getMagnitudesAt(int x, float *values, int minbin, int count, int step) const
float getNormalizedMagnitudeAt(int x, int y) const
float getPhaseAt(int x, int y) const
bool haveSetColumnAt(int x) const
float getMagnitudeAt(int x, int y) const
void getValuesAt(int x, int y, float &real, float &imag) const
FFTFileCacheReader(FFTFileCacheWriter *)
virtual const char * what() const
float getMaximumMagnitudeAt(int x) const
float getFromReadBufCompactSigned(int x, int y) const
void populateReadBuf(int x) const
static int getCacheSize(int width, int height, FFTCache::StorageType type)
bool haveSetColumnAt(int x) const
FFTCache::StorageType m_storageType
void getColumnAt(int x, void *data)
float getFromReadBufCompactUnsigned(int x, int y) const
float getFromReadBufStandard(int x, int y) const
Profile point instance class.