Reading YUV raw from memory

Teemu Keinonen <[email protected]> Fri, 11 Dec 2009 00:44:48 +0200
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
Hello,

I'm stuck in trying to read raw YUV or RGB image from memory to
GraphicsMagick usin MagickWand API.
What i want to do is something like this (using Python ctypes wrappers, but
they should be trivial):

w = NewMagickWand()
MagickSetImageSize(640, 480)
MagickSetImageFormat(w, "RGB")
MagickSetImageDepth(w, 8)
MagickSetImagePixels(w, 0, 0, 640, 480, "RGB", 0, ptrToData)

What am i doing wrong? All help appriciated greatly!

--Teemu Keinonen

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev

_______________________________________________
Graphicsmagick-apis mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-apis