• Michael Natterer's avatar
    added new API gimp_drawable_estimate_memsize() and virtual function · dd80b4c2
    Michael Natterer authored
    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
    dd80b4c2
Name
Last commit
Last update
app Loading commit data...
cursors Loading commit data...
data Loading commit data...
desktop Loading commit data...
devel-docs Loading commit data...
docs Loading commit data...
etc Loading commit data...
libgimp Loading commit data...
libgimpbase Loading commit data...
libgimpcolor Loading commit data...
libgimpconfig Loading commit data...
libgimpmath Loading commit data...
libgimpmodule Loading commit data...
libgimpthumb Loading commit data...
libgimpwidgets Loading commit data...
m4macros Loading commit data...
menus Loading commit data...
modules Loading commit data...
plug-ins Loading commit data...
po Loading commit data...
po-libgimp Loading commit data...
po-plug-ins Loading commit data...
po-python Loading commit data...
po-script-fu Loading commit data...
po-tips Loading commit data...
themes Loading commit data...
tools Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
ChangeLog.pre-1-0 Loading commit data...
ChangeLog.pre-1-2 Loading commit data...
ChangeLog.pre-2-0 Loading commit data...
ChangeLog.pre-2-2 Loading commit data...
ChangeLog.pre-2-4 Loading commit data...
HACKING Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
NEWS.pre-2-0 Loading commit data...
NEWS.pre-2-2 Loading commit data...
NEWS.pre-2-4 Loading commit data...
README Loading commit data...
README.i18n Loading commit data...
acinclude.m4 Loading commit data...
authors.dtd Loading commit data...
authors.xml Loading commit data...
authors.xsl Loading commit data...
autogen.sh Loading commit data...
config.h.win32 Loading commit data...
configure.in Loading commit data...
gimp-zip.in Loading commit data...
gimp.pc.in Loading commit data...
gimpdefs.msc Loading commit data...
gimpthumb.pc.in Loading commit data...
gimpui.pc.in Loading commit data...
makefile.msc Loading commit data...