[eog] Support transpose/transverse as lossless JPEG transformations
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Support transpose/transverse as lossless JPEG transformations
- Date: Sat, 16 Oct 2010 21:06:26 +0000 (UTC)
commit 5bb5a0bbbd8a47215828f30d97474d63dc979be4
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]