[eog/gnome-2-32] Support transpose/transverse as lossless JPEG transformations
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/gnome-2-32] Support transpose/transverse as lossless JPEG transformations
- Date: Sat, 16 Oct 2010 21:06:16 +0000 (UTC)
commit 21639caabe2ad4993f97bc8fe90eb8ca5a6de20f
Author: Felix Riemann <friemann gnome org>
Date: Sat Oct 16 22:50:50 2010 +0200
Support transpose/transverse as lossless JPEG transformations
Also implement a warning message if unsupported transformations
are used to easier discover such cases in the future. Fixes bug 632290.
src/eog-image-jpeg.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-image-jpeg.c b/src/eog-image-jpeg.c
index 441c300..f53ec7f 100644
--- a/src/eog-image-jpeg.c
+++ b/src/eog-image-jpeg.c
@@ -150,7 +150,16 @@ init_transform_info (EogImage *image, jpeg_transform_info *info)
case EOG_TRANSFORM_FLIP_VERTICAL:
trans_code = JXFORM_FLIP_V;
break;
+ case EOG_TRANSFORM_TRANSPOSE:
+ trans_code = JXFORM_TRANSPOSE;
+ break;
+ case EOG_TRANSFORM_TRANSVERSE:
+ trans_code = JXFORM_TRANSVERSE;
+ break;
default:
+ g_warning("EogTransformType not supported!");
+ /* Fallthrough intended here. */
+ case EOG_TRANSFORM_NONE:
trans_code = JXFORM_NONE;
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]