static void
_JPEGErrorHandler(j_common_ptr cinfo)
{
- emptr errmgr;
+ /* emptr errmgr; */
- errmgr = (emptr) cinfo->err;
+ /* errmgr = (emptr) cinfo->err; */
/* cinfo->err->output_message(cinfo);*/
/* longjmp(errmgr->setjmp_buffer, 1);*/
return;
static void
_JPEGErrorHandler2(j_common_ptr cinfo, int msg_level)
{
- emptr errmgr;
+ /* emptr errmgr; */
- errmgr = (emptr) cinfo->err;
+ /* errmgr = (emptr) cinfo->err; */
/* cinfo->err->output_message(cinfo);*/
/* longjmp(errmgr->setjmp_buffer, 1);*/
return;
unsigned int *ptr2, *tmp;
unsigned int iw, ih;
unsigned int x, y, l, scans;
- unsigned int i, count, prevy;
+ unsigned int i;
/* FIXME: handle src_x, src_y and row_stride correctly */
if (!d) return 0;
}
tdata = alloca((iw) * 16 * 3);
ptr2 = d;
- count = 0;
- prevy = 0;
if (cinfo.output_components == 3)
{
ptr2 = tmp + row_stride / 4;
}
}
- else
- {
- ptr += 3 * iw * scans;
- }
}
}
else if (cinfo.output_components == 1)
unsigned char *ptr, *line[16], *tdata = NULL;
unsigned int *ptr2, *tmp;
unsigned int x, y, l, scans;
- unsigned int i, count, prevy, iw;
+ unsigned int i, iw;
memset(&cinfo, 0, sizeof (struct jpeg_decompress_struct));
}
tdata = alloca(w * 16 * 3);
ptr2 = d;
- count = 0;
- prevy = 0;
if (cinfo.output_components == 1)
{
for (i = 0; i < (unsigned int) cinfo.rec_outbuf_height; i++)
ptr2 = tmp + row_stride / 4;
}
}
- else
- {
- ptr += iw * scans;
- }
}
}
/* end data decoding */
{
unsigned int iw = 0, ih = 0;
unsigned const char *dt;
- int sz1, sz2;
+ int sz1;
int ok;
sz1 = header[1];
- sz2 = header[2];
+/* sz2 = header[2]; */
dt = data;
dt += 12;
ok = eet_data_image_jpeg_header_decode(dt, sz1, &iw, &ih);