diff options
| author | Glenn Morris | 2007-09-14 07:44:58 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-09-14 07:44:58 +0000 |
| commit | aca946f32ebf58fcb676940f041d49b0506cde5d (patch) | |
| tree | dc1527c35e746492c8c483226acb708189587923 /src | |
| parent | 1873795047019866c6efb1fae74e7310c338f023 (diff) | |
| download | emacs-aca946f32ebf58fcb676940f041d49b0506cde5d.tar.gz emacs-aca946f32ebf58fcb676940f041d49b0506cde5d.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 c38a5c7f394..696386952f7 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 Kenichi Handa <handa@m17n.org> | 9 | 2007-09-14 Kenichi Handa <handa@m17n.org> |
| 2 | 10 | ||
| 3 | * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero. | 11 | * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero. |
diff --git a/src/image.c b/src/image.c index b330ab38931..0fd042643ee 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -6777,18 +6777,19 @@ our_common_term_source (cinfo) | |||
| 6777 | whenever more data is needed. We read the whole image in one step, | 6777 | whenever more data is needed. We read the whole image in one step, |
| 6778 | so this only adds a fake end of input marker at the end. */ | 6778 | so this only adds a fake end of input marker at the end. */ |
| 6779 | 6779 | ||
| 6780 | static JOCTET omfib_buffer[2]; | ||
| 6781 | |||
| 6780 | static boolean | 6782 | static boolean |
| 6781 | our_memory_fill_input_buffer (cinfo) | 6783 | our_memory_fill_input_buffer (cinfo) |
| 6782 | j_decompress_ptr cinfo; | 6784 | j_decompress_ptr cinfo; |
| 6783 | { | 6785 | { |
| 6784 | /* Insert a fake EOI marker. */ | 6786 | /* Insert a fake EOI marker. */ |
| 6785 | struct jpeg_source_mgr *src = cinfo->src; | 6787 | struct jpeg_source_mgr *src = cinfo->src; |
| 6786 | static JOCTET buffer[2]; | ||
| 6787 | 6788 | ||
| 6788 | buffer[0] = (JOCTET) 0xFF; | 6789 | omfib_buffer[0] = (JOCTET) 0xFF; |
| 6789 | buffer[1] = (JOCTET) JPEG_EOI; | 6790 | omfib_buffer[1] = (JOCTET) JPEG_EOI; |
| 6790 | 6791 | ||
| 6791 | src->next_input_byte = buffer; | 6792 | src->next_input_byte = omfib_buffer; |
| 6792 | src->bytes_in_buffer = 2; | 6793 | src->bytes_in_buffer = 2; |
| 6793 | return 1; | 6794 | return 1; |
| 6794 | } | 6795 | } |
| @@ -7758,6 +7759,9 @@ gif_read_from_memory (file, buf, len) | |||
| 7758 | /* Load GIF image IMG for use on frame F. Value is non-zero if | 7759 | /* Load GIF image IMG for use on frame F. Value is non-zero if |
| 7759 | successful. */ | 7760 | successful. */ |
| 7760 | 7761 | ||
| 7762 | static int interlace_start[] = {0, 4, 2, 1}; | ||
| 7763 | static int interlace_increment[] = {8, 8, 4, 2}; | ||
| 7764 | |||
| 7761 | static int | 7765 | static int |
| 7762 | gif_load (f, img) | 7766 | gif_load (f, img) |
| 7763 | struct frame *f; | 7767 | struct frame *f; |
| @@ -7928,8 +7932,6 @@ gif_load (f, img) | |||
| 7928 | 7932 | ||
| 7929 | if (gif->SavedImages[ino].ImageDesc.Interlace) | 7933 | if (gif->SavedImages[ino].ImageDesc.Interlace) |
| 7930 | { | 7934 | { |
| 7931 | static int interlace_start[] = {0, 4, 2, 1}; | ||
| 7932 | static int interlace_increment[] = {8, 8, 4, 2}; | ||
| 7933 | int pass; | 7935 | int pass; |
| 7934 | int row = interlace_start[0]; | 7936 | int row = interlace_start[0]; |
| 7935 | 7937 | ||