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 |
|
|
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; |
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); |
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, |
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. */ |