Re: vImage
Re: vImage
- Subject: Re: vImage
- From: Shawn Erickson <email@hidden>
- Date: Sat, 10 Jan 2004 15:45:04 -0800
On Jan 10, 2004, at 6:46 AM, Amedeo Paglione wrote:
On 10 Jan 2004, at 01:42, Shawn Erickson wrote:
Why the copy? You should just be able to get the pointer to image
data and wrap that data with a vImage_Buffer.
You are right, it is not necessary, but I used it in order to take
advantage of the MyInitBuffer with the source and dest vImage_Buffer.
Ahh... that is likely the problem. Using it for the source buffer is
allowing that code to define its own row bytes which may not match the
real row bytes of the data.
You should be building you vImage_Buffer with values from the image rep
only... so something like (written in mail)
vImage_Buffer vbuf;
vbuf->height = [imageRep size].height;
vbuf->width = [imageRep size].width;
vbuf->rowBytes = [imageRep bytesPerRow];
vbuf->data = [imageRep bitmapData];
-Shawn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >vImage (From: Amedeo Paglione <email@hidden>) |
| >Re: vImage (From: Shawn Erickson <email@hidden>) |
| >Re: vImage (From: Amedeo Paglione <email@hidden>) |