Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
pp here i believe is the pointer to the whole structure(r/g and b).I need this to be copied to the CUDA device which is why i need the RG and B arrays separately ..Is there a way to do this?
Thanks a lot!
A majority of the image formats stream pixels (red, green, and blue) from left to right and top to bottom. Since the callback does not maintain state, you'll need to provide state yourself by perhaps allocating a red, green, and blue pixel buffer and filling them as the pixels are streamed. You can use global variables or local state by referencing image->client_data. See http://www.imagemagick.org/script/archi ... php#stream.