> I got a vImage_Buffer holding my final image, which I need to transfer > pixelwise over the network using a custom protocol. > > So my next question would be how to copy a buffer in memory to another one, > more specifically how to copy a vImage_Buffer to an array of bytes[]?
you don't want to do this. Copying the data that you already have is fairly pointless (it just means you're going to use twice as much memory, and probably blow out your L2 cache, with nothing to show for it but a warmer CPU and/or louder fan) a vImage_Buffer is a struct (https://developer.apple.com/library/mac/#documentation/Performance/Reference/vImage_types/Reference/reference.html) with 4 fields. void *data is the "array of bytes", and the other fields tell you how to access data inside of it. (unsigned char *)yourVImageBuffer->data is an array of bytes of the data, with no copy. Be sure to look at the rowBytes field when indexing, as they can have some extra bytes at the end of each scanline for padding purposes that you probably don't want to care about. -- Christopher Wright [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [email protected]

