• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: vImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: vImage
      • From: John Randolph <email@hidden>
References: 
 >vImage (From: Amedeo Paglione <email@hidden>)
 >Re: vImage (From: Shawn Erickson <email@hidden>)
 >Re: vImage (From: Amedeo Paglione <email@hidden>)

  • Prev by Date: how to setMovableByWindowBackground?
  • Next by Date: Re: Python from Objective-C?
  • Previous by thread: Re: vImage
  • Next by thread: Re: vImage
  • Index(es):
    • Date
    • Thread