diff options
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 39 |
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 | ||
| 127 | Lisp_Object Qpostscript; | 127 | static Lisp_Object Qpostscript; |
| 128 | 128 | ||
| 129 | static void x_disable_image (struct frame *, struct image *); | 129 | static void x_disable_image (struct frame *, struct image *); |
| 130 | static void x_edge_detection (struct frame *, struct image *, Lisp_Object, | 130 | static void x_edge_detection (struct frame *, struct image *, Lisp_Object, |
| @@ -137,6 +137,7 @@ static void free_color_table (void); | |||
| 137 | static unsigned long *colors_in_color_table (int *n); | 137 | static unsigned long *colors_in_color_table (int *n); |
| 138 | static unsigned long lookup_pixel_color (struct frame *f, unsigned long p); | 138 | static unsigned long lookup_pixel_color (struct frame *f, unsigned long p); |
| 139 | #endif | 139 | #endif |
| 140 | static 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 | ||
| 564 | Lisp_Object Qxbm; | 565 | static Lisp_Object Qxbm; |
| 565 | 566 | ||
| 566 | /* Keywords. */ | 567 | /* Keywords. */ |
| 567 | 568 | ||
| 568 | Lisp_Object QCascent, QCmargin, QCrelief, Qcount, Qextension_data; | 569 | Lisp_Object QCascent, QCmargin, QCrelief; |
| 569 | Lisp_Object QCconversion, QCcolor_symbols, QCheuristic_mask; | 570 | static Lisp_Object Qcount, Qextension_data; |
| 570 | Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask, QCgeometry, QCcrop, QCrotation; | 571 | Lisp_Object QCconversion; |
| 572 | static Lisp_Object QCheuristic_mask; | ||
| 573 | static Lisp_Object QCcolor_symbols; | ||
| 574 | static Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask, QCgeometry; | ||
| 575 | static Lisp_Object QCcrop, QCrotation; | ||
| 571 | 576 | ||
| 572 | /* Other symbols. */ | 577 | /* Other symbols. */ |
| 573 | 578 | ||
| 574 | Lisp_Object Qlaplace, Qemboss, Qedge_detection, Qheuristic; | 579 | static 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 | ||
| 3003 | Lisp_Object Qxpm; | 3008 | static 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 |
| 3094 | struct xpm_cached_color **xpm_color_cache; | 3099 | static 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 |
| 3311 | int | 3316 | int |
| 3312 | x_create_bitmap_from_xpm_data (struct frame *f, const char **bits) | 3317 | x_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 | ||
| 4134 | struct ct_color **ct_table; | 4139 | static 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 | ||
| 4138 | int ct_colors_allocated; | 4143 | static 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 | ||
| 4927 | Lisp_Object Qpbm; | 4932 | static 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 | ||
| 5344 | Lisp_Object Qpng; | 5349 | static 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 | ||
| 5958 | Lisp_Object Qjpeg; | 5963 | static 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 | ||
| 6507 | Lisp_Object Qtiff; | 6512 | static 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 | ||
| 6935 | Lisp_Object Qgif; | 6940 | static 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 | ||
| 8304 | Lisp_Object QCloader, QCbounding_box, QCpt_width, QCpt_height; | 8309 | static 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 | ||