Lines 2330-2336
Link Here
|
2330 |
#endif |
2330 |
#endif |
2331 |
cinfo->src->next_input_byte = jpeg_buffer; |
2331 |
cinfo->src->next_input_byte = jpeg_buffer; |
2332 |
cinfo->src->bytes_in_buffer = nbytes; |
2332 |
cinfo->src->bytes_in_buffer = nbytes; |
2333 |
return TRUE; |
2333 |
return boolean(TRUE); |
2334 |
} |
2334 |
} |
2335 |
|
2335 |
|
2336 |
void CLASS kodak_jpeg_load_raw() |
2336 |
void CLASS kodak_jpeg_load_raw() |
Lines 2346-2352
Link Here
|
2346 |
jpeg_create_decompress (&cinfo); |
2346 |
jpeg_create_decompress (&cinfo); |
2347 |
jpeg_stdio_src (&cinfo, ifp); |
2347 |
jpeg_stdio_src (&cinfo, ifp); |
2348 |
cinfo.src->fill_input_buffer = fill_input_buffer; |
2348 |
cinfo.src->fill_input_buffer = fill_input_buffer; |
2349 |
jpeg_read_header (&cinfo, TRUE); |
2349 |
jpeg_read_header (&cinfo, boolean(TRUE)); |
2350 |
jpeg_start_decompress (&cinfo); |
2350 |
jpeg_start_decompress (&cinfo); |
2351 |
if ((cinfo.output_width != width ) || |
2351 |
if ((cinfo.output_width != width ) || |
2352 |
(cinfo.output_height*2 != height ) || |
2352 |
(cinfo.output_height*2 != height ) || |
Lines 2419-2425
Link Here
|
2419 |
if (tile_length < INT_MAX) |
2419 |
if (tile_length < INT_MAX) |
2420 |
fseek (ifp, get4(), SEEK_SET); |
2420 |
fseek (ifp, get4(), SEEK_SET); |
2421 |
jpeg_stdio_src (&cinfo, ifp); |
2421 |
jpeg_stdio_src (&cinfo, ifp); |
2422 |
jpeg_read_header (&cinfo, TRUE); |
2422 |
jpeg_read_header (&cinfo, boolean(TRUE)); |
2423 |
jpeg_start_decompress (&cinfo); |
2423 |
jpeg_start_decompress (&cinfo); |
2424 |
buf = (*cinfo.mem->alloc_sarray) |
2424 |
buf = (*cinfo.mem->alloc_sarray) |
2425 |
((j_common_ptr) &cinfo, JPOOL_IMAGE, cinfo.output_width*3, 1); |
2425 |
((j_common_ptr) &cinfo, JPOOL_IMAGE, cinfo.output_width*3, 1); |