aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorGlenn Morris <[email protected]>2007-09-14 07:44:58 +0000
committerGlenn Morris <[email protected]>2007-09-14 07:44:58 +0000
commitaca946f32ebf58fcb676940f041d49b0506cde5d (patch)
treedc1527c35e746492c8c483226acb708189587923 /src/image.c
parent1873795047019866c6efb1fae74e7310c338f023 (diff)
(our_memory_fill_input_buffer) <buffer>: Move to file scope and rename
to omfib_buffer for clarity. (gif_load) <interlace_start, interlace_increment>: Move to file scope.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/image.c b/src/image.c
index b330ab3893..0fd042643e 100644
--- a/src/image.c
+++ b/src/image.c
@@ -6777,18 +6777,19 @@ our_common_term_source (cinfo)
whenever more data is needed. We read the whole image in one step,
so this only adds a fake end of input marker at the end. */
+static JOCTET omfib_buffer[2];
+
static boolean
our_memory_fill_input_buffer (cinfo)
j_decompress_ptr cinfo;
{
/* Insert a fake EOI marker. */
struct jpeg_source_mgr *src = cinfo->src;
- static JOCTET buffer[2];
- buffer[0] = (JOCTET) 0xFF;
- buffer[1] = (JOCTET) JPEG_EOI;
+ omfib_buffer[0] = (JOCTET) 0xFF;
+ omfib_buffer[1] = (JOCTET) JPEG_EOI;
- src->next_input_byte = buffer;
+ src->next_input_byte = omfib_buffer;
src->bytes_in_buffer = 2;
return 1;
}
@@ -7758,6 +7759,9 @@ gif_read_from_memory (file, buf, len)
/* Load GIF image IMG for use on frame F. Value is non-zero if
successful. */
+static int interlace_start[] = {0, 4, 2, 1};
+static int interlace_increment[] = {8, 8, 4, 2};
+
static int
gif_load (f, img)
struct frame *f;
@@ -7928,8 +7932,6 @@ gif_load (f, img)
if (gif->SavedImages[ino].ImageDesc.Interlace)
{
- static int interlace_start[] = {0, 4, 2, 1};
- static int interlace_increment[] = {8, 8, 4, 2};
int pass;
int row = interlace_start[0];