|
|
@ -203,13 +203,13 @@ void read_jpeg_image(TQImageIO* iio)
|
|
|
|
struct my_jpeg_source_mgr *iod_src = new my_jpeg_source_mgr(iio);
|
|
|
|
struct my_jpeg_source_mgr *iod_src = new my_jpeg_source_mgr(iio);
|
|
|
|
struct my_error_mgr jerr;
|
|
|
|
struct my_error_mgr jerr;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cinfo.err = jpeg_std_error(&jerr);
|
|
|
|
|
|
|
|
jerr.error_exit = my_error_exit;
|
|
|
|
|
|
|
|
|
|
|
|
jpeg_create_decompress(&cinfo);
|
|
|
|
jpeg_create_decompress(&cinfo);
|
|
|
|
|
|
|
|
|
|
|
|
cinfo.src = iod_src;
|
|
|
|
cinfo.src = iod_src;
|
|
|
|
|
|
|
|
|
|
|
|
cinfo.err = jpeg_std_error(&jerr);
|
|
|
|
|
|
|
|
jerr.error_exit = my_error_exit;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!setjmp(jerr.setjmp_buffer)) {
|
|
|
|
if (!setjmp(jerr.setjmp_buffer)) {
|
|
|
|
#if defined(TQ_OS_UNIXWARE)
|
|
|
|
#if defined(TQ_OS_UNIXWARE)
|
|
|
|
(void) jpeg_read_header(&cinfo, B_TRUE);
|
|
|
|
(void) jpeg_read_header(&cinfo, B_TRUE);
|
|
|
|