aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-15 00:48:51 -0700
committerPaul Eggert2011-04-15 00:48:51 -0700
commit4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9 (patch)
treee993b231bb5555c9c961f5d0b20d90ac76f77bbd /src/image.c
parent1963a2e0bb07cc8dee6d27f972f93d9cfd7c6b2d (diff)
parent49093f601b69d91126aefd328ee8f6bfeb797407 (diff)
downloademacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.tar.gz
emacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.zip
Merge from mainline.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c39
1 files changed, 22 insertions, 17 deletions
diff --git a/src/image.c b/src/image.c
index b3d2be88b96..fb555725b82 100644
--- a/src/image.c
+++ b/src/image.c
@@ -124,7 +124,7 @@ typedef struct ns_bitmap_record Bitmap_Record;
124 124
125/* The symbol `postscript' identifying images of this type. */ 125/* The symbol `postscript' identifying images of this type. */
126 126
127Lisp_Object Qpostscript; 127static Lisp_Object Qpostscript;
128 128
129static void x_disable_image (struct frame *, struct image *); 129static void x_disable_image (struct frame *, struct image *);
130static void x_edge_detection (struct frame *, struct image *, Lisp_Object, 130static void x_edge_detection (struct frame *, struct image *, Lisp_Object,
@@ -137,6 +137,7 @@ static void free_color_table (void);
137static unsigned long *colors_in_color_table (int *n); 137static unsigned long *colors_in_color_table (int *n);
138static unsigned long lookup_pixel_color (struct frame *f, unsigned long p); 138static unsigned long lookup_pixel_color (struct frame *f, unsigned long p);
139#endif 139#endif
140static Lisp_Object Finit_image_library (Lisp_Object, Lisp_Object);
140 141
141/* Code to deal with bitmaps. Bitmaps are referenced by their bitmap 142/* Code to deal with bitmaps. Bitmaps are referenced by their bitmap
142 id, which is just an int that this section returns. Bitmaps are 143 id, which is just an int that this section returns. Bitmaps are
@@ -561,17 +562,21 @@ static Lisp_Object Vimage_type_cache;
561 562
562/* The symbol `xbm' which is used as the type symbol for XBM images. */ 563/* The symbol `xbm' which is used as the type symbol for XBM images. */
563 564
564Lisp_Object Qxbm; 565static Lisp_Object Qxbm;
565 566
566/* Keywords. */ 567/* Keywords. */
567 568
568Lisp_Object QCascent, QCmargin, QCrelief, Qcount, Qextension_data; 569Lisp_Object QCascent, QCmargin, QCrelief;
569Lisp_Object QCconversion, QCcolor_symbols, QCheuristic_mask; 570static Lisp_Object Qcount, Qextension_data;
570Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask, QCgeometry, QCcrop, QCrotation; 571Lisp_Object QCconversion;
572static Lisp_Object QCheuristic_mask;
573static Lisp_Object QCcolor_symbols;
574static Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask, QCgeometry;
575static Lisp_Object QCcrop, QCrotation;
571 576
572/* Other symbols. */ 577/* Other symbols. */
573 578
574Lisp_Object Qlaplace, Qemboss, Qedge_detection, Qheuristic; 579static Lisp_Object Qlaplace, Qemboss, Qedge_detection, Qheuristic;
575 580
576/* Function prototypes. */ 581/* Function prototypes. */
577 582
@@ -3000,7 +3005,7 @@ static int xpm_valid_color_symbols_p (Lisp_Object);
3000#if defined (HAVE_XPM) || defined (HAVE_NS) 3005#if defined (HAVE_XPM) || defined (HAVE_NS)
3001/* The symbol `xpm' identifying XPM-format images. */ 3006/* The symbol `xpm' identifying XPM-format images. */
3002 3007
3003Lisp_Object Qxpm; 3008static Lisp_Object Qxpm;
3004 3009
3005/* Indices of image specification fields in xpm_format, below. */ 3010/* Indices of image specification fields in xpm_format, below. */
3006 3011
@@ -3091,7 +3096,7 @@ struct xpm_cached_color
3091 size. */ 3096 size. */
3092 3097
3093#define XPM_COLOR_CACHE_BUCKETS 1001 3098#define XPM_COLOR_CACHE_BUCKETS 1001
3094struct xpm_cached_color **xpm_color_cache; 3099static struct xpm_cached_color **xpm_color_cache;
3095 3100
3096/* Initialize the color cache. */ 3101/* Initialize the color cache. */
3097 3102
@@ -3307,7 +3312,7 @@ xpm_image_p (Lisp_Object object)
3307 3312
3308#endif /* HAVE_XPM || HAVE_NS */ 3313#endif /* HAVE_XPM || HAVE_NS */
3309 3314
3310#if defined (HAVE_XPM) && defined (HAVE_X_WINDOWS) 3315#if defined HAVE_XPM && defined HAVE_X_WINDOWS && !defined USE_GTK
3311int 3316int
3312x_create_bitmap_from_xpm_data (struct frame *f, const char **bits) 3317x_create_bitmap_from_xpm_data (struct frame *f, const char **bits)
3313{ 3318{
@@ -4131,11 +4136,11 @@ struct ct_color
4131 4136
4132/* The color hash table. */ 4137/* The color hash table. */
4133 4138
4134struct ct_color **ct_table; 4139static struct ct_color **ct_table;
4135 4140
4136/* Number of entries in the color table. */ 4141/* Number of entries in the color table. */
4137 4142
4138int ct_colors_allocated; 4143static int ct_colors_allocated;
4139 4144
4140/* Initialize the color table. */ 4145/* Initialize the color table. */
4141 4146
@@ -4924,7 +4929,7 @@ static int pbm_scan_number (unsigned char **, unsigned char *);
4924 4929
4925/* The symbol `pbm' identifying images of this type. */ 4930/* The symbol `pbm' identifying images of this type. */
4926 4931
4927Lisp_Object Qpbm; 4932static Lisp_Object Qpbm;
4928 4933
4929/* Indices of image specification fields in gs_format, below. */ 4934/* Indices of image specification fields in gs_format, below. */
4930 4935
@@ -5341,7 +5346,7 @@ static int png_load (struct frame *f, struct image *img);
5341 5346
5342/* The symbol `png' identifying images of this type. */ 5347/* The symbol `png' identifying images of this type. */
5343 5348
5344Lisp_Object Qpng; 5349static Lisp_Object Qpng;
5345 5350
5346/* Indices of image specification fields in png_format, below. */ 5351/* Indices of image specification fields in png_format, below. */
5347 5352
@@ -5955,7 +5960,7 @@ static int jpeg_load (struct frame *f, struct image *img);
5955 5960
5956/* The symbol `jpeg' identifying images of this type. */ 5961/* The symbol `jpeg' identifying images of this type. */
5957 5962
5958Lisp_Object Qjpeg; 5963static Lisp_Object Qjpeg;
5959 5964
5960/* Indices of image specification fields in gs_format, below. */ 5965/* Indices of image specification fields in gs_format, below. */
5961 5966
@@ -6504,7 +6509,7 @@ static int tiff_load (struct frame *f, struct image *img);
6504 6509
6505/* The symbol `tiff' identifying images of this type. */ 6510/* The symbol `tiff' identifying images of this type. */
6506 6511
6507Lisp_Object Qtiff; 6512static Lisp_Object Qtiff;
6508 6513
6509/* Indices of image specification fields in tiff_format, below. */ 6514/* Indices of image specification fields in tiff_format, below. */
6510 6515
@@ -6932,7 +6937,7 @@ static void gif_clear_image (struct frame *f, struct image *img);
6932 6937
6933/* The symbol `gif' identifying images of this type. */ 6938/* The symbol `gif' identifying images of this type. */
6934 6939
6935Lisp_Object Qgif; 6940static Lisp_Object Qgif;
6936 6941
6937/* Indices of image specification fields in gif_format, below. */ 6942/* Indices of image specification fields in gif_format, below. */
6938 6943
@@ -8301,7 +8306,7 @@ static void gs_clear_image (struct frame *f, struct image *img);
8301 8306
8302/* Keyword symbols. */ 8307/* Keyword symbols. */
8303 8308
8304Lisp_Object QCloader, QCbounding_box, QCpt_width, QCpt_height; 8309static Lisp_Object QCloader, QCbounding_box, QCpt_width, QCpt_height;
8305 8310
8306/* Indices of image specification fields in gs_format, below. */ 8311/* Indices of image specification fields in gs_format, below. */
8307 8312