[Gimp-developer] memory usage [was: comparing gimp speed]

2004-11-12 Thread Sven Neumann
Hi, there are probably a few things we could try to do to reduce memory usage when working with large images. The main problem here is that if you open an RGB image (no alpha channel) with say 1000 x 1000 pixels, you would expect GIMP to use 1000 * 1000 * 3 bytes to store the image data. You will

Re: [Gimp-developer] memory usage [was: comparing gimp speed]

2004-11-12 Thread Adam D. Moss
Sven Neumann wrote: You will however notice that GIMP instead needs 8 bytes per pixel. In addition to the 3 bpp for the RGB layer it allocates a projection the size of the image. This projection holds the result of compositing the layer stack. It is always allocated 4 bpp. Additionally a

Re: [Gimp-developer] memory usage

2004-11-12 Thread Sven Neumann
Hi, Adam D. Moss [EMAIL PROTECTED] writes: But it still seems like the elegant way to do this (erk, but it probably did rely on the projection being able to assume the same depth as the image). At the moment the projection is always RGBA but the code to do grayscale and indexed projections