aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (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.
* Add 2008 to copyright years.Glenn Morris2008-01-081-1/+2
|
* (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.
* Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
|
* (convert_mono_to_color_image): Swap fore and background.Jason Rumney2007-06-211-2/+2
|
* (xpm_load): Remove spurious call to xpm_init_color_cache.Chong Yidong2007-06-061-3/+0
|
* (pbm_load): Correctly check image size for greyscale pbm.Chong Yidong2007-05-121-1/+5
|
* (pbm_load): Signal error for invalid image size.Chong Yidong2007-03-181-0/+8
|
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (XDrawLine) [MAC_OS]: Remove macro.YAMAMOTO Mitsuharu2007-01-091-6/+2
| | | | | | (XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise. (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of XCreateGC_pixmap.
* [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)YAMAMOTO Mitsuharu2006-10-311-30/+29
| | | | | | | (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h) (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key) (xpm_load_image): Add const qualifier to arguments. [MAC_OS] (xpm_color_key_strings): Make static const.
* (xbm_read_bitmap_data): Delete extra semicolon.Romain Francoise2006-10-121-1/+1
|
* [TARGET_API_MAC_CARBON] (image_load_qt_1): Use ComponentResult insteadYAMAMOTO Mitsuharu2006-08-271-1/+1
| | | | of OSErr.
* * image.c (png_load): Don't call fclose on NULL.Chong Yidong2006-05-261-1/+0
|
* (gif_load): Allocate Lisp string first.YAMAMOTO Mitsuharu2006-05-191-6/+6
|
* (Qduration) [MAC_OS]: Undo previous change.YAMAMOTO Mitsuharu2006-05-101-10/+15
| | | | | (syms_of_image) [MAC_OS]: Likewise. [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
* (Qduration) [MAC_OS]: New variable.YAMAMOTO Mitsuharu2006-05-061-3/+18
| | | | | | | (syms_of_image) [MAC_OS]: Intern and staticpro it. [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val. [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring instead of cfstring_create_with_string.
* (four_corners_best): New arg CORNERS specifies what pixelsKim F. Storm2006-04-211-31/+101
| | | | | | | | | | | | | | to look at in case image has margin. (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best. (image_background, image_background_transparent) (x_build_heuristic_mask): Pass img->corners to four_corners_best. (gif_load): Set img->corners according to image's margin spec. Use img->corners values directly where applicable. Save image extension data in img->data.lisp_val. (gif_clear_image): New function to free img->data.lisp_val. (gif_type): Use it instead of generic x_clear_image. (Fimage_extension_data): New defun. (syms_of_image): Defsubr it.
* [MAC_OS] (xpm_load_image): Fill in background fieldYAMAMOTO Mitsuharu2006-04-211-0/+4
| | | | while we have ximg handy.
* (x_create_bitmap_from_data) [MAC_OS]: Don't check returnYAMAMOTO Mitsuharu2006-04-181-3/+1
| | | | value of xmalloc.
* [MAC_OS] (xpm_load_image): Add parentheses aroundYAMAMOTO Mitsuharu2006-04-121-11/+14
| | | | | | assignment used as truth value. Add explicit braces to avoid ambiguous `else'. [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
* Include "charset.h" and "coding.h".Kenichi Handa2006-04-031-3/+8
| | | | (x_find_image_file): Return an encoded file name.
* [MAC_OS] (XPutPixel, XGetPixel)YAMAMOTO Mitsuharu2006-03-161-2/+71
| | | | | | | | | [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized version when depth is 32. (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]: New function. (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it. (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
* [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap depth is 32.YAMAMOTO Mitsuharu2006-03-081-2/+2
| | | | [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap depth is 32.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* [MAC_OS] (find_image_fsspec): Use coercion of Apple event data forYAMAMOTO Mitsuharu2005-12-241-7/+9
| | | | translation from/to file names.
* (init_image) [MAC_OS]: Don't call EnterMovies.YAMAMOTO Mitsuharu2005-12-101-6/+4
| | | | [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
* Fix typo.Chong Yidong2005-11-181-1/+1
|
* * image.c (x_create_bitmap_from_xpm_data): Free attributes onChong Yidong2005-11-181-2/+4
| | | | fail.
* initialize XpmAttributesChong Yidong2005-11-161-0/+8
|
* * gnu.h (gnu_bits): Xpm version of the new Emacs icon.Chong Yidong2005-11-161-0/+34
| | | | | | * xterm.c (x_bitmap_icon): Use the xpm if available. * image.c (x_create_bitmap_from_xpm_data): New function.
* (init_image) [MAC_OS]: Don't call EnterMovies ifYAMAMOTO Mitsuharu2005-11-151-1/+2
| | | | inhibit_window_system is set.
* [MAC_OSX] (image_load_quartz2d): Fix memory leak.YAMAMOTO Mitsuharu2005-11-091-0/+1
|
* [MAC_OS] (image_load_qt_1): Check image size.YAMAMOTO Mitsuharu2005-10-251-6/+30
| | | | | | | Use GraphicsImportGetImageDescription instead of GraphicsImportGetNaturalBounds. [MAC_OSX] (image_load_quartz2d): Check image size. [MAC_OS] (xpm_load_image): Likewise.
* (check_image_size): Handle integer Vmax_image_size valueKim F. Storm2005-10-191-14/+29
| | | | | directly as max pixel value. Use default frame size for null frame. (syms_of_image) <max-image-size>: Describe integer value.
* * image.c (Vmax_image_size): New variable.Chong Yidong2005-10-191-7/+87
| | | | | | | | | | | (check_image_size): New function. (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load) (gif_load, gs_load): Use it. (lookup_image): Try loading again if previous load failed. (xbm_read_bitmap_data): Add a new argument, a pointer to the frame to display in, NULL if none. (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new argument.
* (fn_jpeg_stdio_src): Don't define it.Juanma Barranquero2005-10-111-21/+132
| | | | | | | | | | | | | | (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'. (our_common_init_source): Rename from `our_init_source'. (our_common_term_source): Rename from `our_term_source'. (our_memory_fill_input_buffer): Rename from `our_fill_input_buffer'. (our_memory_skip_input_data): Rename from `our_skip_input_data'. (jpeg_memory_src): Use the new names. (struct jpeg_stdio_mgr): New struct. (JPEG_STDIO_BUFFER_SIZE): New constant. (our_stdio_fill_input_buffer, our_stdio_skip_input_data, jpeg_file_src): New functions. (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
* * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correctDan Nicolaescu2005-09-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | type. * xterm.c (handle_one_xevent, handle_one_xevent): Likewise. * unexelf.c (fatal): Fix prototype. * term.c (fatal): Implement using varargs. * regex.c (re_char): Move typedef ... * regex.h (re_char): ... here. (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes. * emacs.c (malloc_set_state): Fix return type. (endif): Fix type. * lisp.h (fatal): Add argument types. * dispextern.h (fatal): Delete prototype. * systime.h: (make_time): Prototype moved from ... * editfns.c (make_time): ... here. * editfns.c: Move systime.h include after lisp.h. * dired.c: * xsmfns.c: * process.c: Likewise. * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook): Add parameter types. (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes. (emacs_blocked_free): Change definition to match __free_hook. (emacs_blocked_malloc): Change definition to match __malloc_hook. (emacs_blocked_realloc): Change definition to match __realloc_hook.
* (gif_load): Fix size of allocated image bufferKim F. Storm2005-09-281-7/+11
| | | | | for images where a sub-image may be larger than the image's total height/width specifications.
* (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument. All uses changed.YAMAMOTO Mitsuharu2005-08-311-161/+211
| | | | | | | | | | [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common cases. (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image. [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef. Use posix_pathname_to_fsspec. [MAC_OS] (xpm_load_image): Fill in background_transparent field while we have mask.
* (syms_of_image): Init Qxbm, Qpbm before calling define_image_type.Richard M. Stallman2005-08-151-11/+11
|
* (syms_of_image): Init image_types here, and call define_image_type.Richard M. Stallman2005-08-111-5/+8
| | | | (init_image): Not here.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-2/+2
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|