added new API gimp_drawable_estimate_memsize() and virtual function
2007-12-04 Michael Natterer <mitch@gimp.org> * app/core/gimpdrawable.[ch]: added new API gimp_drawable_estimate_memsize() and virtual function GimpDrawable::estimate_memsize() which estimate the memsize of a drawable after scaling/resizing. * app/core/gimplayer.c: implement the virtual function and take the layer mask into account. * app/core/gimpimage-item-list.[ch] (gimp_image_item_list_get_list): added const qualifiers. * app/core/gimpimage-scale.c (gimp_image_scale_check): use the new function to correctly estimate the new size instead of scaling the drawables' memsizes including all constant parts. Fixes bug #329468. * app/gimp-log.[ch]: added IMAGE_SCALE log domain. * app/core/gimpimage-scale.c: use it here for debugging output. svn path=/trunk/; revision=24260
This commit is contained in:
committed by
Michael Natterer
parent
4fe0a3a613
commit
dd80b4c263
@ -26,7 +26,8 @@ typedef enum
|
||||
GIMP_LOG_DND = 1 << 1,
|
||||
GIMP_LOG_HELP = 1 << 2,
|
||||
GIMP_LOG_DIALOG_FACTORY = 1 << 3,
|
||||
GIMP_LOG_SAVE_DIALOG = 1 << 4
|
||||
GIMP_LOG_SAVE_DIALOG = 1 << 4,
|
||||
GIMP_LOG_IMAGE_SCALE = 1 << 5
|
||||
} GimpLogFlags;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user