Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVPixelBufferCreateWithBytes returning -6680



Hi,

I'm currently trying to convert  a sequence grabber based on the old
sgdataproc example to use the newer quartz/quicktime model. As there
currently does not seems to exist much conceptual documentation, i
have delve into it, head first. But already my first attempt to create
a CVPixelbuffer fails:

CVPixelBufferCreateWithBytes (NULL,
							  config.xsize,
							  config.ysize,
							  k32RGBAPixelFormat,  //assuming I get this with a raw codec
in the sequence grabber, but since there is no length parameter, the
memory should be interpreted as such a buffer.
							  callBackData,
							  config.xsize * 4, // 8 bit *4 
							  NULL, //no callback
							  NULL, //callback reference
							  NULL, //Pixelbuffer attributes
							  &pixelbuffer);

First question: Is this function the equivalent to NewGWorldFromPtr,
that I assume it to be ?

Second question: What the heck does the error code 6680 mean. It is
not listed in the CoreVideo result codes yet...

Third question: Do the parameters look reasonable to you ?

Fourth question: Is there example code I might have missed ?

Thanks,
Martin
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.