From eaa7e22d98f28fd4fc650ae272cf15afcb2456f9 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 17 Feb 2006 18:14:28 +0000 Subject: Put not-so-large arrays on the stack, so they end up in IRAM on Iriver and iPod. Approximately doubles decoding speed on Iriver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8717 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/jpeg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c index 7d29f353fe..e11680f8d6 100644 --- a/apps/plugins/jpeg.c +++ b/apps/plugins/jpeg.c @@ -392,7 +392,7 @@ void idct8x8(unsigned char* p_byte, int* inptr, int* quantptr, int skip_line) int * wsptr; unsigned char* outptr; int ctr; - static int workspace[64]; /* buffers data between passes */ + int workspace[64]; /* buffers data between passes */ /* Pass 1: process columns from input, store into work array. */ /* Note results are scaled up by sqrt(8) compared to a true IDCT; */ @@ -1397,7 +1397,7 @@ int jpeg_decode(struct jpeg* p_jpeg, unsigned char* p_pixel[3], int downscale, void (*pf_progress)(int current, int total)) { struct bitstream bs; /* bitstream "object" */ - static int block[64]; /* decoded DCT coefficients */ + int block[64]; /* decoded DCT coefficients */ int width, height; int skip_line[3]; /* bytes from one line to the next (skip_line) */ @@ -1574,7 +1574,7 @@ int jpeg_decode(struct jpeg* p_jpeg, unsigned char* p_pixel[1], int downscale, void (*pf_progress)(int current, int total)) { struct bitstream bs; /* bitstream "object" */ - static int block[64]; /* decoded DCT coefficients */ + int block[64]; /* decoded DCT coefficients */ int width, height; int skip_line; /* bytes from one line to the next (skip_line) */ -- cgit v1.2.3