aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2004-03-11 00:31:31 +0000
committerKim F. Storm2004-03-11 00:31:31 +0000
commitc0f97789bf67d4279de3242cc9a87eef059fae38 (patch)
tree9e0e66837d973f4f3cbf9c84bf026169266411ff /src
parent3cdbfa1922db604de878b77c38620739d2e2a023 (diff)
downloademacs-c0f97789bf67d4279de3242cc9a87eef059fae38.tar.gz
emacs-c0f97789bf67d4279de3242cc9a87eef059fae38.zip
Image consolidation.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog174
1 files changed, 174 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 95cec4f1f14..bcda2d45958 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,177 @@
12004-03-11 Kim F. Storm <storm@cua.dk>
2
3 The following changes consolidates the identical/similar image
4 support code previously found in xfns.c, w32fns.c, and macfns.c
5 into a new file image.c.
6
7 * makefile.w32-in (OBJ1): Add image.o.
8 ($(BLD)/image.$(O)): Add dependencies.
9
10 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
11 (image.o): Add dependencies.
12
13 * image.c: New file with consolidated image support code.
14 (COLOR_TABLE_SUPPORT): New define to control whether
15 color table support is available (X only).
16 (Bitmap_Record): Common name for x_bitmap_record,
17 w32_bitmap_record, and mac_bitmap_record.
18 (XImagePtr): Common name for pointer to XImage or equivalent.
19 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
20 to XImagePtr on X+MAC, and to HDC on W32.
21 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
22 (NO_PIXMAP): Common name for "None" or equivalent.
23 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
24 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
25 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
26 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen): Define
27 with suitable equivalents on W32 and MAC for code sharing.
28 (XDrawLine): Define on MAC for code sharing.
29 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
30 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
31 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
32 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
33 (x_reference_bitmap, x_create_bitmap_from_data)
34 (x_create_bitmap_from_file, x_destroy_bitmap)
35 (x_destroy_all_bitmaps, x_create_bitmap_mask)
36 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
37 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
38 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
39 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
40 (define_image_type, lookup_image_type, valid_image_p)
41 (image_error, enum image_value_type, struct image_keyword)
42 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
43 (make_image, free_image, prepare_image_for_display, image_ascent)
44 (four_corners_best, image_background, image_background_transparent)
45 (x_clear_image_1, x_clear_image, x_alloc_image_color)
46 (make_image_cache, free_image_cache, clear_image_cache)
47 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
48 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
49 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
50 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
51 (init_image_func_pointer, image_load_quartz2d)
52 (struct ct_color, init_color_table, free_color_table)
53 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
54 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
55 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
56 (x_disable_image, x_build_heuristic_mask)
57 (XBM support, XPM support, PBM support, PNG support, JPEG support)
58 (TIFF support, GIF support, Ghostscript support): Consolidate image
59 code from xfns.c, w32fns.c, and macfns.c.
60 (syms_of_image): Consolidate image related symbol setup here.
61 (init_image): Consolidate image related initializations here.
62
63 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
64 and init_image. Remove call to init_xfns.
65
66 * macterm.h (struct mac_bitmap_record): Add file member. Not
67 currently used, but simplifies code sharing.
68
69 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
70 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
71 (x_reference_bitmap, x_create_bitmap_from_data)
72 (x_create_bitmap_from_file, x_destroy_bitmap)
73 (x_destroy_all_bitmaps, x_create_bitmap_mask)
74 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
75 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
76 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
77 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
78 (define_image_type, lookup_image_type, valid_image_p)
79 (image_error, enum image_value_type, struct image_keyword)
80 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
81 (make_image, free_image, prepare_image_for_display, image_ascent)
82 (four_corners_best, image_background, image_background_transparent)
83 (x_clear_image_1, x_clear_image, x_alloc_image_color)
84 (make_image_cache, free_image_cache, clear_image_cache)
85 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
86 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
87 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
88 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
89 (init_image_func_pointer, image_load_quartz2d)
90 (struct ct_color, init_color_table, free_color_table)
91 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
92 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
93 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
94 (x_disable_image, x_build_heuristic_mask)
95 (XBM support, XPM support, PBM support, PNG support, JPEG support)
96 (TIFF support, GIF support, Ghostscript support): Merge with image
97 code from xfns.c and macfns.c into image.c.
98 (syms_of_xfns): Move image related symbols to image.c.
99 (init_external_image_libraries, init_xfns): Remove; initialization
100 moved to init_image in image.c.
101
102 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
103 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
104 (x_reference_bitmap, x_create_bitmap_from_data)
105 (x_create_bitmap_from_file, x_destroy_bitmap)
106 (x_destroy_all_bitmaps, x_create_bitmap_mask)
107 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
108 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
109 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
110 (define_image_type, lookup_image_type, valid_image_p)
111 (image_error, enum image_value_type, struct image_keyword)
112 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
113 (make_image, free_image, prepare_image_for_display, image_ascent)
114 (four_corners_best, image_background, image_background_transparent)
115 (x_clear_image_1, x_clear_image, x_alloc_image_color)
116 (make_image_cache, free_image_cache, clear_image_cache)
117 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
118 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
119 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
120 (struct ct_color, init_color_table, free_color_table)
121 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
122 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
123 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
124 (x_disable_image, x_build_heuristic_mask)
125 (XBM support, XPM support, PBM support, PNG support, JPEG support)
126 (TIFF support, GIF support, Ghostscript support): Merge with image
127 code from xfns.c and macfns.c into image.c.
128 (syms_of_xfns): Move image related symbols to image.c.
129 (init_external_image_libraries, init_xfns): Remove; initialization
130 moved to init_image in image.c.
131
132 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
133 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
134 (x_reference_bitmap, x_create_bitmap_from_data)
135 (x_create_bitmap_from_file, x_destroy_bitmap)
136 (x_destroy_all_bitmaps, x_create_bitmap_mask)
137 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
138 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
139 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
140 (define_image_type, lookup_image_type, valid_image_p)
141 (image_error, enum image_value_type, struct image_keyword)
142 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
143 (make_image, free_image, prepare_image_for_display, image_ascent)
144 (four_corners_best, image_background, image_background_transparent)
145 (x_clear_image_1, x_clear_image, x_alloc_image_color)
146 (make_image_cache, free_image_cache, clear_image_cache)
147 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
148 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
149 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
150 (struct ct_color, init_color_table, free_color_table)
151 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
152 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
153 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
154 (x_disable_image, x_build_heuristic_mask)
155 (XBM support, XPM support, PBM support, PNG support, JPEG support)
156 (TIFF support, GIF support, Ghostscript support): Merge with
157 w32fns.c and macfns.c image code into image.c.
158 (syms_of_xfns): Move image related symbols to image.c.
159 (init_xfns): Remove; initialization moved to init_image in image.c.
160
161 * lisp.h (syms_of_image, init_image): Add protoypes.
162 (init_xfns): Remove prototype.
163
164 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
165 (x_reference_bitmap, x_create_bitmap_from_data)
166 (x_create_bitmap_from_file, x_destroy_bitmap)
167 (x_create_bitmap_mask): Move prototypes from dispextern.h.
168 (gamma_correct) [MAC_OS]: Add prototype.
169
170 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
171 (x_reference_bitmap, x_create_bitmap_from_data)
172 (x_create_bitmap_from_file, x_destroy_bitmap)
173 (x_create_bitmap_mask): Move prototypes to dispextern.h.
174
12004-03-09 Kenichi Handa <handa@etlken2> 1752004-03-09 Kenichi Handa <handa@etlken2>
2 176
3 * coding.c (decode_coding_emacs_mule): Handle insufficent source 177 * coding.c (decode_coding_emacs_mule): Handle insufficent source