/* ITULAB */
/* Illuminant D50 */
set_lab_illuminant(&s->lab, 96.422f, 100.000f, 82.521f);
+set_lab_illuminant(&s->lab, 95.047f, 100.000f, 108.883f);
set_lab_gamut(&s->lab, 0, 100, -85, 85, -75, 125, false);
}
s->compressed_image_size = 0;
span_log(&s->logging, SPAN_LOG_FLOW, "Failed to open_memstream().\n");
return -1;
}
- if (fseek(s->out, 0, SEEK_SET) != 0)
- {
- fclose(s->out);
- s->out = NULL;
- return -1;
- }
#else
if ((s->out = tmpfile()) == NULL)
{
for (i = 0; i < 16; i++)
jpeg_save_markers(&s->decompressor, JPEG_APP0 + i, 0xFFFF);
- /* Rewind the file */
- if (fseek(s->in, 0, SEEK_SET) != 0)
- {
- fclose(s->in);
- s->in = NULL;
- return -1;
- }
-
/* Take the header */
jpeg_read_header(&s->decompressor, false);
/* Sanity check and parameter check */
/* ITULAB */
/* Illuminant D50 */
set_lab_illuminant(&s->lab, 96.422f, 100.000f, 82.521f);
+set_lab_illuminant(&s->lab, 95.047f, 100.000f, 108.883f);
set_lab_gamut(&s->lab, 0, 100, -85, 85, -75, 125, false);
}