diff options
| author | Glenn Morris | 2007-09-14 07:44:49 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-09-14 07:44:49 +0000 |
| commit | a99dc82bd816d31c075939ee3cc641d80ce763e7 (patch) | |
| tree | 11e41f45e1b107f560b2b3e06f534e8e70c5f6c4 /src | |
| parent | ac1281ac7d4c48d0d625c86162a381791d1cb29c (diff) | |
| download | emacs-a99dc82bd816d31c075939ee3cc641d80ce763e7.tar.gz emacs-a99dc82bd816d31c075939ee3cc641d80ce763e7.zip | |
(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')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/image.c | 14 |
2 files changed, 16 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c9b38825527..3719e00f228 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2007-09-14 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * fringe.c (init_fringe_bitmap) <swap nibble>: Move to file scope. | ||
| 4 | * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope. | ||
| 5 | * image.c (our_memory_fill_input_buffer) <buffer>: Move to file | ||
| 6 | scope and rename to omfib_buffer for clarity. | ||
| 7 | (gif_load) <interlace_start, interlace_increment>: Move to file scope. | ||
| 8 | |||
| 1 | 2007-09-14 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change) | 9 | 2007-09-14 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change) |
| 2 | * gtkutil.c (xg_get_file_with_chooser): Move GCPRO1 after declarations. | 10 | * gtkutil.c (xg_get_file_with_chooser): Move GCPRO1 after declarations. |
| 3 | 11 | ||
diff --git a/src/image.c b/src/image.c index cd70166c295..d8b16d832e3 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -6769,18 +6769,19 @@ our_common_term_source (cinfo) | |||
| 6769 | whenever more data is needed. We read the whole image in one step, | 6769 | whenever more data is needed. We read the whole image in one step, |
| 6770 | so this only adds a fake end of input marker at the end. */ | 6770 | so this only adds a fake end of input marker at the end. */ |
| 6771 | 6771 | ||
| 6772 | static JOCTET omfib_buffer[2]; | ||
| 6773 | |||
| 6772 | static boolean | 6774 | static boolean |
| 6773 | our_memory_fill_input_buffer (cinfo) | 6775 | our_memory_fill_input_buffer (cinfo) |
| 6774 | j_decompress_ptr cinfo; | 6776 | j_decompress_ptr cinfo; |
| 6775 | { | 6777 | { |
| 6776 | /* Insert a fake EOI marker. */ | 6778 | /* Insert a fake EOI marker. */ |
| 6777 | struct jpeg_source_mgr *src = cinfo->src; | 6779 | struct jpeg_source_mgr *src = cinfo->src; |
| 6778 | static JOCTET buffer[2]; | ||
| 6779 | 6780 | ||
| 6780 | buffer[0] = (JOCTET) 0xFF; | 6781 | omfib_buffer[0] = (JOCTET) 0xFF; |
| 6781 | buffer[1] = (JOCTET) JPEG_EOI; | 6782 | omfib_buffer[1] = (JOCTET) JPEG_EOI; |
| 6782 | 6783 | ||
| 6783 | src->next_input_byte = buffer; | 6784 | src->next_input_byte = omfib_buffer; |
| 6784 | src->bytes_in_buffer = 2; | 6785 | src->bytes_in_buffer = 2; |
| 6785 | return 1; | 6786 | return 1; |
| 6786 | } | 6787 | } |
| @@ -7750,6 +7751,9 @@ gif_read_from_memory (file, buf, len) | |||
| 7750 | /* Load GIF image IMG for use on frame F. Value is non-zero if | 7751 | /* Load GIF image IMG for use on frame F. Value is non-zero if |
| 7751 | successful. */ | 7752 | successful. */ |
| 7752 | 7753 | ||
| 7754 | static int interlace_start[] = {0, 4, 2, 1}; | ||
| 7755 | static int interlace_increment[] = {8, 8, 4, 2}; | ||
| 7756 | |||
| 7753 | static int | 7757 | static int |
| 7754 | gif_load (f, img) | 7758 | gif_load (f, img) |
| 7755 | struct frame *f; | 7759 | struct frame *f; |
| @@ -7920,8 +7924,6 @@ gif_load (f, img) | |||
| 7920 | 7924 | ||
| 7921 | if (gif->SavedImages[ino].ImageDesc.Interlace) | 7925 | if (gif->SavedImages[ino].ImageDesc.Interlace) |
| 7922 | { | 7926 | { |
| 7923 | static int interlace_start[] = {0, 4, 2, 1}; | ||
| 7924 | static int interlace_increment[] = {8, 8, 4, 2}; | ||
| 7925 | int pass; | 7927 | int pass; |
| 7926 | int row = interlace_start[0]; | 7928 | int row = interlace_start[0]; |
| 7927 | 7929 | ||