aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * process.c (ifflag_def): Make flag_sym constant.Dan Nicolaescu2009-11-111-11/+11
| | | | | | | | | | | | | | | | | | (Fnetwork_interface_info): Use a constant pointer. (ifflag_table): * xfns.c (cursor_bits): * xdisp.c (power_letter): * termcap.c (speeds, esctab): * sysdep.c (baud_convert): * keyboard.c (lispy_accent_codes, modifier_names): * image.c (xbm_format, xpm_format, pbm_format, png_format) (jpeg_format, tiff_format, gif_format, svg_format) (interlace_start, interlace_increment, gs_format): * gtkutil.c (separator_names): * fringe.c (swap_nibble): * fns.c (base64_value_to_char, base64_char_to_value): * fileio.c (make_temp_name_tbl): * coding.c (suffixes): Make constant.
* * xterm.c (syms_of_xterm):Dan Nicolaescu2009-11-061-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xselect.c (syms_of_xselect): * xmenu.c (syms_of_xmenu): * xfns.c (syms_of_xfns): * xfaces.c (syms_of_xfaces): * xdisp.c (syms_of_xdisp): * window.c (syms_of_window): * w32fns.c (syms_of_w32fns): * undo.c (syms_of_undo): * textprop.c (syms_of_textprop): * terminal.c (syms_of_terminal): * syntax.c (syms_of_syntax): * sound.c (syms_of_sound): * search.c (syms_of_search): * print.c (syms_of_print): * minibuf.c (syms_of_minibuf): * macros.c (syms_of_macros): * keymap.c (syms_of_keymap, initial_define_key) (initial_define_lispy_key): * keyboard.c (syms_of_keyboard): * insdel.c (syms_of_insdel): * image.c (syms_of_image): * fringe.c (syms_of_fringe): * frame.c (syms_of_frame): * fontset.c (syms_of_fontset): * fns.c (syms_of_fns): * fns.c (syms_of_fns): * fileio.c (syms_of_fileio): * fileio.c (syms_of_fileio): * eval.c (syms_of_eval): * doc.c (syms_of_doc): * dispnew.c (syms_of_display): * dired.c (syms_of_dired): * dbusbind.c (syms_of_dbusbind): * data.c (syms_of_data): * composite.c (syms_of_composite): * coding.c (syms_of_coding): * cmds.c (syms_of_cmds): * charset.c (define_charset_internal, syms_of_character): * ccl.c (syms_of_ccl): * category.c (syms_of_category, init_category_once): * casetab.c (syms_of_casetab): * casefiddle.c (syms_of_casefiddle): * callint.c (syms_of_callint): * bytecode.c (syms_of_bytecode): * buffer.c (keys_of_buffer, syms_of_buffer): * alloc.c (syms_of_alloc): * process.c (syms_of_process, init_process): * lread.c (syms_of_lread, init_obarray): * font.c (build_style_table): * emacs.c (syms_of_emacs, main): Replace calls to intern with intern_c_string, calls to make_pure_string with make_pure_c_string. Use pure_cons instead of Fcons. * process.c (socket_options): Make it const. (set_socket_option, init_process): Use a const pointer. * lread.c (intern_c_string): New function. (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool) (defvar_int): Uset it. Make the name const char*. * font.c (struct table_entry): Remove unused member. Make NAMES constant. (weight_table, slant_table, width_table): Make constant. * emacs.c (struct standard_args): Make name and longname constant.
* * fns.c: Remove code for unsupported system: MAC_OS.Dan Nicolaescu2009-10-191-243/+2
| | | | * image.c: Likewise. Include setjmp.h.
* * alloc.c: Do not define struct catchtag.Dan Nicolaescu2009-10-191-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c: Move struct catchtag definition ... * lisp.h: ... here. * image.c: Move png.h #include earlier to avoid warnings. * xterm.c: * xsmfns.c: * xselect.c: * xrdb.c: * xmenu.c: * xftfont.c: * xfont.c: * xfns.c: * xfaces.c: * xdisp.c: * window.c: * widget.c: * w32xfns.c: * w32uniscribe.c: * w32term.c: * w32select.c: * w32reg.c: * w32proc.c: * w32menu.c: * w32inevt.c: * w32heap.c: * w32font.c: * w32fns.c: * w32console.c: * w32.c: * w16select.c: * vm-limit.c: * unexsol.c: * unexec.c: * unexcw.c: * unexaix.c: * undo.c: * tparam.c: * textprop.c: * terminfo.c: * terminal.c: * termcap.c: * term.c: * syntax.c: * sound.c: * sheap.c: * search.c: * scroll.c: * region-cache.c: * regex.c: * ralloc.c: * process.c: * print.c: * msdos.c: * minibuf.c: * menu.c: * marker.c: * macros.c: * keymap.c: * keyboard.c: * intervals.c: * insdel.c: * indent.c: * gtkutil.c: * ftxfont.c: * ftfont.c: * fringe.c: * frame.c: * fontset.c: * font.c: * fns.c: * floatfns.c: * filelock.c: * fileio.c: * emacs.c: * editfns.c: * dosfns.c: * doprnt.c: * doc.c: * dispnew.c: * dired.c: * dbusbind.c: * data.c: * composite.c: * coding.c: * cmds.c: * cm.c: * chartab.c: * charset.c: * character.c: * ccl.c: * category.c: * casetab.c: * casefiddle.c: * callproc.c: * callint.c: * bytecode.c: * buffer.c: * atimer.c: Include setjmp.h. (Bug#4643) * xlwmenu.c: * lwlib.c: * lwlib-utils.c: * lwlib-Xm.c: * lwlib-Xlw.c: * lwlib-Xaw.c: Include setjmp.h.
* joakim at verona.seGlenn Morris2009-08-251-1/+1
| | | | Replace some C99 comments.
* * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.Chong Yidong2009-08-131-8/+12
| | | | | (xbm_load_image): Caller changed. (xbm_file_p): Avoid signalling an image_error.
* (xbm_read_bitmap_data, png_load, svg_load_image):Jason Rumney2009-03-041-11/+19
| | | | | | Log an error message if check_image_size failed. (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load) (gs_load): Mention max-image-size in size error message.
* (svg_load_image): Fix last change.Chong Yidong2009-02-061-11/+9
|
* * image.c (svg_load_image): Don't right-shift background RGB whenAdrian Robert2009-01-291-7/+7
| | | | obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
* Add 2009 to copyright years.Glenn Morris2009-01-081-1/+1
|
* * w32term.c (x_query_colors, x_query_color): New functions.Jason Rumney2009-01-031-43/+11
| | | | | | * image.c (x_to_xcolors, png_load): Eliminate W32 specific code. (svg_load_image): Cast returned pointers from dynamically loaded functions. Eliminate W32 specific code.
* (Qgobject): New symbol.Jason Rumney2009-01-021-4/+9
| | | | | (syms_of_image): Initialize it. (init_svg_functions): Load some functions from gobject library.
* Fix bug #1362. * image.c (x_clear_image_1): Do not free background under ↵Adrian Robert2008-11-251-4/+1
| | | | HAVE_NS, it is not an indexed color. * nsterm.m (free_indexed_color): Add argument checking. * nsfns.m: Move config.h to before system includes (advised by Dan N.).
* * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with ↵Adrian Robert2008-10-031-1/+1
| | | | correct arguments.
* (enum tiff_keyword_index, tiff_format): Add :index keyword.Jason Rumney2008-08-231-5/+35
| | | | | | | | (fn_TIFFSetDirectory): New library function used. (init_tiff_functions) [HAVE_NTGUI]: Initialize it. (tiff_load): Use :index to select among multiple images. Set count property when multiple images exist. (gif_format): Use :index, not :image.
* Remove support for Mac Carbon.Dan Nicolaescu2008-07-271-1021/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mactoolbox.c: * macterm.h: * macterm.c: * macselect.c: * macmenu.c: * macgui.h: * macfns.c: * mac.c: Remove file. * s/darwin.h: * m/intel386.h: * xfaces.c: * xdisp.c: * window.c: * tparam.c: * termhooks.h: * termcap.c: * term.c: * syssignal.h: * sysselect.h: * sysdep.c: * process.c: * lread.c: * lisp.h: * keyboard.c: * image.c: * fringe.c: * frame.h: * frame.c: * fontset.c: * font.h: * font.c: * fns.c: * fileio.c: * emacs.c: * dispnew.c: * dispextern.h: * config.in: * atimer.c: * Makefile.in: Remove code for Carbon * erc.el: Remove code for Carbon. Remove support for Mac Carbon. * term/mac-win.el: Remove file * international/mule-cmds.el: * version.el: * startup.el: * simple.el: * mwheel.el: * mouse.el: * loadup.el: * isearch.el: * info.el: * frame.el: * faces.el: * disp-table.el: * cus-start.el: * cus-face.el: * cus-edit.el: * Makefile.in: Remove code for Carbon. Remove support for Mac Carbon. * makefile.w32-in: * emacsclient.c: Remove code for Carbon. * PROBLEMS: * MACHINES: Remove mentions of Mac Carbon. * ns-emacs.texi: * faq.texi: Remove mentions of Mac Carbon. * os.texi: * frames.texi: * display.texi: Remove mentions of Mac Carbon. * xresources.texi: Remove mentions of Mac Carbon. * make-tarball.txt: * admin.el: * FOR-RELEASE: * CPP-DEFINES: Remove mentions of Mac Carbon. Remove support for Mac Carbon. * mac: Remove directory. * make-dist: * configure.in: * README: * Makefile.in: * INSTALL: Remove code for Carbon. * configure: Regenerate.
* Merge from emacs--rel--22Miles Bader2008-07-261-10/+5
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1356
| * (mac_create_cg_image_from_image, image_load_image_io)YAMAMOTO Mitsuharu2008-07-211-10/+5
| | | | | | | | [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
| * (png_load): Use correct bit-depth for setting background color.YAMAMOTO Mitsuharu2008-07-071-39/+9
| |
* | (x_from_xcolors): Don't initialize pixmap (silence compiler).Chong Yidong2008-07-251-1/+1
| |
* | (svg_load_image): Use rsvg_handle_get_dimensions to check that imageChong Yidong2008-07-251-9/+12
| | | | | | | | | | size is valid. Use g_object_unref instead of deprecated rsvg_handle_free to free rsvg handle.
* | (svg_load_image): Fix last change.Chong Yidong2008-07-251-1/+2
| |
* | (svg_load_image): Check for failure in return value ofChong Yidong2008-07-251-1/+3
| | | | | | | | rsvg_handle_get_pixbuf. Free rsvg handle when done.
* | * term/ns-win.el: Rename ns- functions/variables to theDan Nicolaescu2008-07-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | corresponding x- versions. (x-select-text, x-cut-buffer-or-selection-value) (x-disown-selection-internal, x-get-selection-internal) (x-own-selection-internal, x-defined-colors, xw-defined-colors) (x-display-mm-width, x-display-mm-height) (x-display-backing-store, x-display-save-under) (x-display-visual-class, x-display-screens, x-focus-frame): Remove defaliases. * image.c: * nsfns.m: * nsselect.m: * nsterm.h: * nsterm.m: Rename ns prefixed functions/variables to the corresponding x versions. Update references.
* | change most cases of PENDING to TODO, some to FIXME or XXXAdrian Robert2008-07-171-1/+1
| |
* | merging Emacs.app (NeXTstep port)Adrian Robert2008-07-151-34/+222
| |
* | * dispextern.h, xfaces.c (xstrcasecmp): Renamed from xstricmp.Jason Rumney2008-05-221-2/+2
| | | | | | | | | | | | * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c: * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c: * xfns.c, xfont.c: Callers changed.
* | Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-141-6/+4
| |
* | (image_ascent): Don't include "charset.h". IncludeKenichi Handa2008-05-141-1/+2
| | | | | | | | "character.h" and "font.h".
* | (png_load): Use correct bit-depth for setting background color.Chong Yidong2008-05-091-39/+9
| |
* | Merge from emacs--rel--22Miles Bader2008-05-041-40/+359
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1142
| * [USE_MAC_IMAGE_IO] (image_load_image_io):YAMAMOTO Mitsuharu2008-05-041-1/+5
| | | | | | | | Create bitmap context in native byte order.
| * (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:YAMAMOTO Mitsuharu2008-05-021-40/+355
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New definitions for Image I/O support. (XGetImage, XPutPixel, XGetPixel, XDestroyImage) (mac_create_cg_image_from_image, x_create_x_image_and_pixmap) [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support. (mac_data_provider_release_data, image_load_image_io) [USE_MAC_IMAGE_IO]: New functions. (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef. (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable. (init_image_func_pointer) [MAC_OSX]: Remove function. (image_load_quartz2d) [MAC_OSX]: Check availability of CGImageCreateWithPNGDataProvider at compile time. Use lowercase `false' for boolean constant. (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]: Use image_load_image_io. (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]: Don't check MyCGImageCreateWithPNGDataProvider. (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]: Don't call init_image_func_pointer.
* | Merge from emacs--rel--22Miles Bader2008-04-051-11/+31
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1107
| * (pbm_load): Allow color values up to 65535.Jason Rumney2008-03-281-11/+31
| | | | | | | | | | | | Throw an error if max_color_idx is outside the supported range. Report an error when image size is invalid. Read two bytes at a time when raw images have max_color_idx above 255.
* | Allow fine-grained image-cache flushing.Stefan Monnier2008-02-241-22/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dispextern.h (struct image): Add `dependencies' field. (clear_image_caches): Change arg to Lisp_Object. * image.c (make_image): Initialize `dependencies' field. (clear_image_cache): Change arg to allow fine-grained flushing. Perform the flush even if image-cache-eviction-delay is nil. (clear_image_caches): Change arg to Lisp_Object. (Fclear_image_cache): Expand meaning of the argument. (mark_image): Mark `dependencies' field. * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches. (lface_hash): Use XHASH rather than XFASTINT. (face_at_buffer_position): Fix int -> EMACS_INT position. * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position. (select_frame_for_redisplay): Remove code duplication. (redisplay_internal): Adapt arg to call to clear_image_caches.
* | Include termhooks.h to find the image_cache slot in terminal objects.Stefan Monnier2008-02-221-1/+1
| |
* | Consolidate the image_cache to the terminal struct.Stefan Monnier2008-02-221-29/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * termhooks.h (P_): Remove redundant def. (struct terminal): New field `image_cache'. * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place of FRAME_X_IMAGE_CACHE. * xterm.h (struct x_display_info): Remove image_cache field. (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. * w32term.h (struct w32_display_info): Remove image_cache field. (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. * macterm.h (struct mac_display_info): Remove image_cache field. (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. * xterm.c (x_term_init): * w32term.c (w32_term_init): * macterm.c (mac_term_init): Set the image_cache in the terminal. * dispextern.h (clear_image_cache, forall_images_in_image_cache): Remove declarations. (clear_image_caches, mark_image_cache): New declarations. * xfaces.c (clear_face_cache): * xdisp.c (redisplay_internal): Use clear_image_caches. * image.c (clear_image_cache): Don't check that a frame is on a window-system before checking if it shares the same cache. (clear_image_caches): New function. (Fclear_image_cache): Use it. (mark_image): Move from allo.c. (mark_image_cache): Move from alloc.c and forall_images_in_image_cache. * alloc.c (mark_image, mark_image_cache): Move to image.c. (mark_object): Don't call mark_image_cache for frames. (mark_terminals): Call mark_image_cache.
* | Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| * Add 2008 to copyright years.Glenn Morris2008-01-081-1/+2
| |
* | Merge from emacs--rel--22Miles Bader2007-12-061-0/+15
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-943
| * (xbm_load) [WINDOWSNT]: Shuffle the bits of directly specified XBMs.Jason Rumney2007-12-021-0/+15
| |
| * (syms_of_image) <image-types>: Fix typo in docstring.Juanma Barranquero2007-10-051-6/+6
| |
| * (our_memory_buffer): Renamed from omfib_buffer.Richard M. Stallman2007-09-211-4/+4
| |
| * (our_memory_fill_input_buffer) <buffer>: Move to file scope and renameGlenn Morris2007-09-141-6/+8
| | | | | | | | | | to omfib_buffer for clarity. (gif_load) <interlace_start, interlace_increment>: Move to file scope.
| * (gif_load): Fix bug: Handle nonexistent colormap.Thien-Thi Nguyen2007-09-061-7/+8
| |
| * (syms_of_image) <image-library-alist, cross-disabled-images>: Doc fixes.Juanma Barranquero2007-08-281-4/+6
| |
| * Sync to trunk version.Chong Yidong2007-08-071-11/+100
| | | | | | | | | | | | | | | | (search_image_cache, uncache_image, image-refresh): New functions. Check for fg and bg colors. (lookup_image): Use search_image_cache. Cache fg and bg colors. (pbm_load): Another check for invalid image data. (png_load): Ignore default background field.
* | Rewrite abbrev.c in Elisp.Stefan Monnier2007-10-281-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * image.c (Qcount): Don't declare as extern. (syms_of_image): Initialize and staticpro `Qcount'. * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions. * emacs.c (main): Don't call syms_of_abbrev. * Makefile.in (obj): Remove abbrev.o. (abbrev.o): Remove. * abbrev.c: Remove. Rewrite abbrev.c in Elisp. * abbrev.el (abbrev-mode): Move custom group from cus-edit.el. (abbrev-table-get, abbrev-table-put, abbrev-get) (abbrev-put, make-abbrev-table, abbrev-table-p, clear-abbrev-table) (define-abbrev, abbrev--check-chars, define-global-abbrev) (define-mode-abbrev, abbrev--active-tables, abbrev-symbol) (abbrev-expansion, abbrev--before-point, expand-abbrev) (unexpand-abbrev, abbrev--write, abbrev--describe) (insert-abbrev-table-description, define-abbrev-table): New funs, largely transcribed from abbrev.c. (abbrev-with-wrapper-hook): New macro. (abbrev-table-name-list, global-abbrev-table) (abbrev-minor-mode-table-alist, fundamental-mode-abbrev-table) (abbrevs-changed, abbrev-all-caps, abbrev-start-location) (abbrev-start-location-buffer, last-abbrev, last-abbrev-text) (last-abbrev-location, pre-abbrev-expand-hook, abbrev-expand-function): New vars, largely transcribed from abbrev.c. * cus-edit.el (abbrev-mode): Remove. Move to abbrev.el. * cus-start.el: Remove abbrev-all-caps and pre-abbrev-expand-hook. * loadup.el: Load "abbrev.el" before "lisp-mode.el".
* | Replace `abs' with `eabs'.Eli Zaretskii2007-10-131-3/+3
| |