| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
to omfib_buffer for clarity.
(gif_load) <interlace_start, interlace_increment>: Move to file scope.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
(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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
(XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
(x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
XCreateGC_pixmap.
|
| |
|
|
|
|
|
| |
(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.
|
| | |
|
| |
|
|
| |
of OSErr.
|
| | |
|
| | |
|
| |
|
|
|
| |
(syms_of_image) [MAC_OS]: Likewise.
[MAC_OS] (gif_load): Emulate Graphic Control Extension block.
|
| |
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
while we have ximg handy.
|
| |
|
|
| |
value of xmalloc.
|
| |
|
|
|
|
| |
assignment used as truth value. Add explicit braces to avoid
ambiguous `else'.
[MAC_OS] (gif_load): Remove unused variable `gcpro1'.
|
| |
|
|
| |
(x_find_image_file): Return an encoded file name.
|
| |
|
|
|
|
|
|
|
| |
[!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] (XGetPixel): Strip off alpha channel bits if pixmap depth is 32.
|
| | |
|
| |
|
|
| |
translation from/to file names.
|
| |
|
|
| |
[!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
|
| | |
|
| |
|
|
| |
fail.
|
| | |
|
| |
|
|
|
|
| |
* xterm.c (x_bitmap_icon): Use the xpm if available.
* image.c (x_create_bitmap_from_xpm_data): New function.
|
| |
|
|
| |
inhibit_window_system is set.
|
| | |
|
| |
|
|
|
|
|
| |
Use GraphicsImportGetImageDescription instead of
GraphicsImportGetNaturalBounds.
[MAC_OSX] (image_load_quartz2d): Check image size.
[MAC_OS] (xpm_load_image): Likewise.
|
| |
|
|
|
| |
directly as max pixel value. Use default frame size for null frame.
(syms_of_image) <max-image-size>: Describe integer value.
|
| |
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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'.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
for images where a sub-image may be larger than the image's
total height/width specifications.
|
| |
|
|
|
|
|
|
|
|
| |
[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.
|
| | |
|
| |
|
|
| |
(init_image): Not here.
|
| | |
|
| | |
|