[magick-users] MagickGetImageDepth performance issues

Gonzalo Garramuño ggarra at advancedsl.com.ar
Wed Jan 30 19:06:31 PST 2008


duc.sequere.aut.de.via.decede at imagemagick.org wrote:
>> wand->image->depth
> 
> The image depth is problematic because do you want the depth the image
> file reports or the actual depth which may differ.  

Ideally, I would like both.  I would like the bit depth as it is on the 
file on disk (to report to the user, calculate memory consumption 
properly and/or keep it in memory -compressed- at that bitdepth after 
imagemagick has read it).

And I would also like the bit-depth that would be faster to transfer 
from imagemagick's memory to my own program's memory (ie. what would 
give me just a memcpy, not an iterator copy).  I'm also assuming here 
that Imagemagick is smart not to keep 8-bit images at full quantum depth 
(which is 32-bits in my case) when it reads them.



-- 
Gonzalo Garramuño
ggarra at advancedsl.com.ar

AMD4400 - ASUS48N-E
GeForce7300GT
Xubuntu Gutsy


More information about the Magick-users mailing list