/[emacs]/emacs/src/image.c
ViewVC logotype

Diff of /emacs/src/image.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by tamm, Fri Dec 3 17:00:11 2004 UTC revision 1.18 by rms, Wed Dec 8 17:55:30 2004 UTC
# Line 6378  our_fill_input_buffer (cinfo) Line 6378  our_fill_input_buffer (cinfo)
6378    
6379    src->next_input_byte = buffer;    src->next_input_byte = buffer;
6380    src->bytes_in_buffer = 2;    src->bytes_in_buffer = 2;
6381    return TRUE;    return 1;
6382  }  }
6383    
6384    
# Line 6533  jpeg_load (f, img) Line 6533  jpeg_load (f, img)
6533      jpeg_memory_src (&cinfo, SDATA (specified_data),      jpeg_memory_src (&cinfo, SDATA (specified_data),
6534                       SBYTES (specified_data));                       SBYTES (specified_data));
6535    
6536    fn_jpeg_read_header (&cinfo, TRUE);    fn_jpeg_read_header (&cinfo, 1);
6537    
6538    /* Customize decompression so that color quantization will be used.    /* Customize decompression so that color quantization will be used.
6539           Start decompression.  */           Start decompression.  */
6540    cinfo.quantize_colors = TRUE;    cinfo.quantize_colors = 1;
6541    fn_jpeg_start_decompress (&cinfo);    fn_jpeg_start_decompress (&cinfo);
6542    width = img->width = cinfo.output_width;    width = img->width = cinfo.output_width;
6543    height = img->height = cinfo.output_height;    height = img->height = cinfo.output_height;
# Line 7552  gif_load (f, img) Line 7552  gif_load (f, img)
7552    bg_color.blue = color.blue;    bg_color.blue = color.blue;
7553    RGBBackColor (&bg_color);    RGBBackColor (&bg_color);
7554    SetGWorld (old_port, old_gdh);    SetGWorld (old_port, old_gdh);
7555    SetMovieActive (movie, TRUE);    SetMovieActive (movie, 1);
7556    SetMovieGWorld (movie, ximg, NULL);    SetMovieGWorld (movie, ximg, NULL);
7557    SampleNumToMediaTime (media, ino + 1, &time, NULL);    SampleNumToMediaTime (media, ino + 1, &time, NULL);
7558    SetMovieTimeValue (movie, time);    SetMovieTimeValue (movie, time);
# Line 7930  DEFUN ("lookup-image", Flookup_image, Sl Line 7930  DEFUN ("lookup-image", Flookup_image, Sl
7930    define_image_type (image_type, init_lib_fn (libraries))    define_image_type (image_type, init_lib_fn (libraries))
7931  #else  #else
7932  #define CHECK_LIB_AVAILABLE(image_type, init_lib_fn, libraries) \  #define CHECK_LIB_AVAILABLE(image_type, init_lib_fn, libraries) \
7933    define_image_type (image_type, TRUE)    define_image_type (image_type, 1)
7934  #endif /* HAVE_NTGUI */  #endif /* HAVE_NTGUI */
7935    
7936  DEFUN ("init-image-library", Finit_image_library, Sinit_image_library, 2, 2, 0,  DEFUN ("init-image-library", Finit_image_library, Sinit_image_library, 2, 2, 0,
# Line 8114  init_image () Line 8114  init_image ()
8114  {  {
8115    image_types = NULL;    image_types = NULL;
8116    
8117    define_image_type (&xbm_type, TRUE);    define_image_type (&xbm_type, 1);
8118    define_image_type (&pbm_type, TRUE);    define_image_type (&pbm_type, 1);
8119    
8120  #ifdef MAC_OS  #ifdef MAC_OS
8121    /* Animated gifs use QuickTime Movie Toolbox.  So initialize it here. */    /* Animated gifs use QuickTime Movie Toolbox.  So initialize it here. */

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26