Page 1 of 1

MagickConstituteImage

Posted: 2011-02-17T15:13:42-07:00
by vipersnake
Is there a way to call MagickConstituteImage and pass in pixel data without it copying the data? i.e. the format matches internally so it uses the data without copying it.

I have an existing image data that is in ARGB 32bit char and it would be easier and more efficient to send in the existing data that it uses. This would also alleviate the need to extract it possibly.

Re: MagickConstituteImage

Posted: 2011-02-17T17:56:51-07:00
by magick
The MPC image format is similar to what you're asking. However, it memory maps the pixel cache from disk whereas you want to map it directly from memory. Direct mapping of pixels in memory is not currently supported. We'll add it to the to-do list but we currently do not have an ETA on its implementation.