[gegl] Raw load (libraw): bounding box correction for rotated images
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Raw load (libraw): bounding box correction for rotated images
- Date: Thu, 27 Apr 2017 15:08:16 +0000 (UTC)
commit 14d71e541270d0248f4307d3701c26759673205b
Author: Jean-Baptiste Mayer <jean-baptiste mayer m4x org>
Date: Mon Sep 5 18:47:10 2016 +0100
Raw load (libraw): bounding box correction for rotated images
Fixed bug: 770917
operations/external/raw-load.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/operations/external/raw-load.c b/operations/external/raw-load.c
index 30f9498..3b71376 100644
--- a/operations/external/raw-load.c
+++ b/operations/external/raw-load.c
@@ -147,8 +147,18 @@ get_bounding_box (GeglOperation *operation)
if (p->LibRaw != NULL &&
(p->LibRaw->progress_flags & LIBRAW_PROGRESS_IDENTIFY))
{
- result.width = p->LibRaw->sizes.width;
- result.height = p->LibRaw->sizes.height;
+ switch (p->LibRaw->sizes.flip)
+ {
+ case 5:
+ case 6:
+ result.width = p->LibRaw->sizes.height;
+ result.height = p->LibRaw->sizes.width;
+ break;
+ default:
+ result.width = p->LibRaw->sizes.width;
+ result.height = p->LibRaw->sizes.height;
+ break;
+ }
gegl_operation_set_format (operation, "output", babl_format ("R'G'B' u16"));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]