[gegl] use maxdir=4 and make enlarge size matche scale-size



commit fb9d85ea5091ab4454e33bae1ec48f1b2fc15c0a
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Jun 26 17:44:10 2019 +0200

    use maxdir=4 and make enlarge size matche scale-size

 bin/lua/viewer.lua                 | 2 +-
 bin/ui-core.c                      | 8 ++++++++
 operations/workshop/enlarge.c      | 4 ++--
 operations/workshop/pixel-duster.h | 2 +-
 4 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/bin/lua/viewer.lua b/bin/lua/viewer.lua
index c445ba2c7..fc96812e5 100644
--- a/bin/lua/viewer.lua
+++ b/bin/lua/viewer.lua
@@ -435,7 +435,7 @@ if path:find(".pdf$") or path:find('.PDF$') then
 
 end
 
-draw_thumb_bar()
+--draw_thumb_bar()
 
 mrg:add_binding("alt-right", NULL, "next image",
   function() ffi.C.argvs_eval ("next") end)
diff --git a/bin/ui-core.c b/bin/ui-core.c
index 4564aa0a9..01b14a936 100644
--- a/bin/ui-core.c
+++ b/bin/ui-core.c
@@ -1474,6 +1474,14 @@ void set_clip_position (GeState *o, double position)
   }
 }
 
+int cmd_lued (COMMAND_ARGS); /* "lued", 0, "<>", "" */
+int
+cmd_lued (COMMAND_ARGS)
+{
+  system ("gnome-terminal -e 'vim /home/pippin/src/gegl/bin/lua/'");
+  return 0;
+}
+
 int cmd_apos (COMMAND_ARGS); /* "apos", 1, "<>", "set the animation time, this is time relative to clip, 
meaning 0.0 is first frame of clips timeline (negative frames will be used for fade-in, to keep timings the 
same), set position is quantized according to frame rate."*/
 int
 cmd_apos (COMMAND_ARGS)
diff --git a/operations/workshop/enlarge.c b/operations/workshop/enlarge.c
index 7695d81a8..ad240a67e 100644
--- a/operations/workshop/enlarge.c
+++ b/operations/workshop/enlarge.c
@@ -210,8 +210,8 @@ get_bounding_box (GeglOperation *operation)
     result = *res;
   result.x = 0;
   result.y = 0;
-  result.width  *= o->scale;
-  result.height *= o->scale;
+  result.width  = ceilf (result.width * o->scale);
+  result.height = ceilf (result.height * o->scale);
 
   return result;
 }
diff --git a/operations/workshop/pixel-duster.h b/operations/workshop/pixel-duster.h
index 18ff6eb5d..a99ef0924 100644
--- a/operations/workshop/pixel-duster.h
+++ b/operations/workshop/pixel-duster.h
@@ -79,7 +79,7 @@ typedef struct
 #define PIXDUST_REL_DIGEST  0
 #define NEIGHBORHOOD        23
 #define PIXDUST_ORDERED     0
-#define MAX_DIR             1
+#define MAX_DIR             4
 
 //#define ONLY_DIR            1
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]