comparison data/fft/FFTMemoryCache.cpp @ 1038:cc27f35aa75c cxx11

Introducing the signed 64-bit frame index type, and fixing build failures from inclusion of -Wconversion with -Werror. Not finished yet.
author Chris Cannam
date Tue, 03 Mar 2015 15:18:24 +0000
parents 5173e56e17f7
children
comparison
equal deleted inserted replaced
1037:bf0e5944289b 1038:cc27f35aa75c
194 } else { 194 } else {
195 setColumnAt(x, reals, imags, max); 195 setColumnAt(x, reals, imags, max);
196 } 196 }
197 } 197 }
198 198
199 int 199 size_t
200 FFTMemoryCache::getCacheSize(int width, int height, FFTCache::StorageType type) 200 FFTMemoryCache::getCacheSize(int width, int height, FFTCache::StorageType type)
201 { 201 {
202 int sz = 0; 202 size_t sz = 0;
203 203
204 switch (type) { 204 switch (type) {
205 205
206 case FFTCache::Compact: 206 case FFTCache::Compact:
207 sz = (height * 2 + 1) * width * sizeof(uint16_t); 207 sz = (height * 2 + 1) * width * sizeof(uint16_t);