diff options
author | Tomer Shalev <shalev.tomer@gmail.com> | 2010-02-12 00:07:00 +0000 |
---|---|---|
committer | Tomer Shalev <shalev.tomer@gmail.com> | 2010-02-12 00:07:00 +0000 |
commit | 248969fd463ec5b5b53bd7e304b2a2da7a46d21a (patch) | |
tree | 61be50234dea646dfe1de01721c9efb119f18be2 /apps/plugins/fft/fft.c | |
parent | f6526bdde277f12753960afec4be9b74c77beeb3 (diff) | |
download | rockbox-248969fd463ec5b5b53bd7e304b2a2da7a46d21a.tar.gz rockbox-248969fd463ec5b5b53bd7e304b2a2da7a46d21a.zip |
fft: fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24613 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/fft/fft.c')
-rw-r--r-- | apps/plugins/fft/fft.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/plugins/fft/fft.c b/apps/plugins/fft/fft.c index bfb36d78aa..d84484c1c1 100644 --- a/apps/plugins/fft/fft.c +++ b/apps/plugins/fft/fft.c | |||
@@ -220,7 +220,20 @@ GREY_INFO_STRUCT | |||
220 | #include "_kiss_fft_guts.h" /* sizeof(struct kiss_fft_state) */ | 220 | #include "_kiss_fft_guts.h" /* sizeof(struct kiss_fft_state) */ |
221 | #include "const.h" | 221 | #include "const.h" |
222 | 222 | ||
223 | #define FFT_SIZE 2048 | 223 | #if (LCD_WIDTH < LCD_HEIGHT) |
224 | #define LCD_SIZE LCD_HEIGHT | ||
225 | #else | ||
226 | #define LCD_SIZE LCD_WIDTH | ||
227 | #endif | ||
228 | |||
229 | #if (LCD_SIZE < 512) | ||
230 | #define FFT_SIZE 2048 /* 512*4 */ | ||
231 | #elif (LCD_SIZE < 1024) | ||
232 | #define FFT_SIZE 4096 /* 1024*4 */ | ||
233 | #else | ||
234 | #define FFT_SIZE 8192 /* 2048*4 */ | ||
235 | #endif | ||
236 | |||
224 | #define ARRAYSIZE_IN (FFT_SIZE) | 237 | #define ARRAYSIZE_IN (FFT_SIZE) |
225 | #define ARRAYSIZE_OUT (FFT_SIZE/2) | 238 | #define ARRAYSIZE_OUT (FFT_SIZE/2) |
226 | #define ARRAYSIZE_PLOT (FFT_SIZE/4) | 239 | #define ARRAYSIZE_PLOT (FFT_SIZE/4) |