convert_cmyk_to_rgb (struct jpeg_decompress_struct *cinfo,
guchar **lines)
{
- gint i, j;
+ gint i;
+ guint j;
g_return_if_fail (cinfo != NULL);
g_return_if_fail (cinfo->output_components == 4);
{
struct jpeg_source_mgr* src = (struct jpeg_source_mgr*) cinfo->src;
- if (num_bytes > src->bytes_in_buffer)
+ if ((gulong)num_bytes > src->bytes_in_buffer)
{
ERREXIT(cinfo, JERR_INPUT_EOF);
}
struct error_handler_data jerr;
lj->stereo = FALSE;
+// DEBUG_1("TG: JPG requested size w=%d:h=%d", lj->requested_width > 0, lj->requested_height);
MPOData *mpo = jpeg_get_mpo_data(buf, count);
if (mpo && mpo->num_images > 1)
lj->requested_width = lj->stereo ? cinfo.image_width * 2: cinfo.image_width;
lj->requested_height = cinfo.image_height;
+// DEBUG_1("TG: JPG requested size v2 w=%d:h=%d", lj->requested_width > 0, lj->requested_height);
lj->size_cb(loader, lj->requested_width, lj->requested_height, lj->data);
cinfo.scale_num = 1;