Commit 49b8aa4c authored by Paolo Bacchilega's avatar Paolo Bacchilega

Fixed JPEG lossless rotation

Fixes: #22
parent 842650f8
......@@ -186,10 +186,18 @@ jpegtran_internal (struct jpeg_decompress_struct *srcinfo,
}
transformoption.transform = transform;
transformoption.perfect = (mcu_action == JPEG_MCU_ACTION_ABORT);
transformoption.trim = (mcu_action == JPEG_MCU_ACTION_TRIM);
transformoption.force_grayscale = FALSE;
#if JPEG_LIB_VERSION >= 80
transformoption.crop = 0;
transformoption.crop = FALSE;
transformoption.crop_width_set = FALSE;
transformoption.crop_height_set = FALSE;
transformoption.crop_xoffset_set = FALSE;
transformoption.crop_yoffset_set = FALSE;
#endif
#ifdef LIBJPEG_TURBO_VERSION
transformoption.slow_hflip = FALSE;
#endif
/* Enable saving of extra markers that we want to copy */
......@@ -207,7 +215,7 @@ jpegtran_internal (struct jpeg_decompress_struct *srcinfo,
transform))
{
if (error != NULL)
g_set_error (error, JPEG_ERROR, JPEG_ERROR_MCU, "MCU Error");
g_set_error (error, JPEG_ERROR, JPEG_ERROR_MCU, "MCU Error");
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment