forked from len0rd/rockbox
fft: fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24613 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f6526bdde2
commit
248969fd46
1 changed files with 14 additions and 1 deletions
|
|
@ -220,7 +220,20 @@ GREY_INFO_STRUCT
|
||||||
#include "_kiss_fft_guts.h" /* sizeof(struct kiss_fft_state) */
|
#include "_kiss_fft_guts.h" /* sizeof(struct kiss_fft_state) */
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
|
|
||||||
#define FFT_SIZE 2048
|
#if (LCD_WIDTH < LCD_HEIGHT)
|
||||||
|
#define LCD_SIZE LCD_HEIGHT
|
||||||
|
#else
|
||||||
|
#define LCD_SIZE LCD_WIDTH
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if (LCD_SIZE < 512)
|
||||||
|
#define FFT_SIZE 2048 /* 512*4 */
|
||||||
|
#elif (LCD_SIZE < 1024)
|
||||||
|
#define FFT_SIZE 4096 /* 1024*4 */
|
||||||
|
#else
|
||||||
|
#define FFT_SIZE 8192 /* 2048*4 */
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ARRAYSIZE_IN (FFT_SIZE)
|
#define ARRAYSIZE_IN (FFT_SIZE)
|
||||||
#define ARRAYSIZE_OUT (FFT_SIZE/2)
|
#define ARRAYSIZE_OUT (FFT_SIZE/2)
|
||||||
#define ARRAYSIZE_PLOT (FFT_SIZE/4)
|
#define ARRAYSIZE_PLOT (FFT_SIZE/4)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue