2006-12-09 21:33:38 +00:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2003-02-17 11:21:35 +00:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
1999-08-22 11:45:31 +00:00
|
|
|
*
|
2009-01-17 22:28:01 +00:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
1999-08-22 11:45:31 +00:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-17 22:28:01 +00:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
1999-08-22 11:45:31 +00:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2018-07-11 23:27:07 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
1999-08-22 11:45:31 +00:00
|
|
|
*/
|
2000-12-13 18:53:35 +00:00
|
|
|
|
2025-07-13 03:15:46 +02:00
|
|
|
#pragma once
|
1998-06-28 10:39:58 +00:00
|
|
|
|
|
|
|
|
2020-05-07 14:30:21 +02:00
|
|
|
GList * gimp_image_merge_visible_layers (GimpImage *image,
|
2007-12-06 19:51:02 +00:00
|
|
|
GimpContext *context,
|
|
|
|
GimpMergeType merge_type,
|
2011-02-14 09:45:59 +01:00
|
|
|
gboolean merge_active_group,
|
app: merge layers in chunks, and show progress
In gimp_image_merge_layers() -- the internal function used by the
various layer-merging/flattenning functions -- process the merged-
layer graph in chunks, using gimp_gegl_apply_operation(), instead
of in one go, using gegl_node_blit_buffer(). Processing in chunks
better utilizes the cache, since it reduces the size of
intermediate buffers, reducing the chances of hitting the swap when
merging large images (see, for example, issue #3012.)
Additionally, this allows us to show progress indication. Have the
relevant gimpimage-merge functions take a GimpProgress, and pass it
down to gimp_image_merge_layers(). Adapt all callers.
2019-02-25 04:49:04 -05:00
|
|
|
gboolean discard_invisible,
|
|
|
|
GimpProgress *progress);
|
2020-06-30 23:29:05 +02:00
|
|
|
GList * gimp_image_merge_down (GimpImage *image,
|
|
|
|
GList *layers,
|
2007-12-06 19:51:02 +00:00
|
|
|
GimpContext *context,
|
2009-08-25 22:02:02 +02:00
|
|
|
GimpMergeType merge_type,
|
app: merge layers in chunks, and show progress
In gimp_image_merge_layers() -- the internal function used by the
various layer-merging/flattenning functions -- process the merged-
layer graph in chunks, using gimp_gegl_apply_operation(), instead
of in one go, using gegl_node_blit_buffer(). Processing in chunks
better utilizes the cache, since it reduces the size of
intermediate buffers, reducing the chances of hitting the swap when
merging large images (see, for example, issue #3012.)
Additionally, this allows us to show progress indication. Have the
relevant gimpimage-merge functions take a GimpProgress, and pass it
down to gimp_image_merge_layers(). Adapt all callers.
2019-02-25 04:49:04 -05:00
|
|
|
GimpProgress *progress,
|
2009-08-25 22:02:02 +02:00
|
|
|
GError **error);
|
2009-09-21 19:08:04 +02:00
|
|
|
GimpLayer * gimp_image_merge_group_layer (GimpImage *image,
|
|
|
|
GimpGroupLayer *group);
|
|
|
|
|
2007-12-06 19:51:02 +00:00
|
|
|
GimpLayer * gimp_image_flatten (GimpImage *image,
|
2013-08-09 21:31:55 +02:00
|
|
|
GimpContext *context,
|
app: merge layers in chunks, and show progress
In gimp_image_merge_layers() -- the internal function used by the
various layer-merging/flattenning functions -- process the merged-
layer graph in chunks, using gimp_gegl_apply_operation(), instead
of in one go, using gegl_node_blit_buffer(). Processing in chunks
better utilizes the cache, since it reduces the size of
intermediate buffers, reducing the chances of hitting the swap when
merging large images (see, for example, issue #3012.)
Additionally, this allows us to show progress indication. Have the
relevant gimpimage-merge functions take a GimpProgress, and pass it
down to gimp_image_merge_layers(). Adapt all callers.
2019-02-25 04:49:04 -05:00
|
|
|
GimpProgress *progress,
|
2013-08-09 21:31:55 +02:00
|
|
|
GError **error);
|
2009-09-21 19:08:04 +02:00
|
|
|
|
2024-07-12 06:16:25 +00:00
|
|
|
GimpPath * gimp_image_merge_visible_paths (GimpImage *image,
|
2007-12-06 19:51:02 +00:00
|
|
|
GError **error);
|