• 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: [NSBitmapImageRep getBitmapDataPlanes] copying data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?


  • Subject: Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
  • From: Jonny Taylor <email@hidden>
  • Date: Mon, 21 Feb 2011 21:19:47 +0000

>> I am looking at the performance of my code, and have found that rather a lot of time is spent in [NSBitmapImageRep getBitmapDataPlanes]. This is rather disappointing because I had assumed this was a 'trivial' way of getting a pointer to the actual data store itself in the case of raster data. Investigation using shark appears to confirm that the call is making a copy of the data(?). Can anyone shed any light on what is going on and whether I can do anything about it?
>
> Assuming you're running on Snow Leopard, the relevant information is in this document:
>
> 	http://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKit.html

Thanks very much for your reply, that's very helpful. So do I understand it correctly that there is no way at all of peeking (read only) at the pixels of a NSBitmapImageRep without triggering a copy? That's a bit of a shame if so - guess I'll have to look into CoreImage.

Cheers
Jonny_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
      • From: Quincey Morris <email@hidden>
References: 
 >[NSBitmapImageRep getBitmapDataPlanes] copying data? (From: Jonathan Taylor <email@hidden>)
 >Re: [NSBitmapImageRep getBitmapDataPlanes] copying data? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: How to detect when an NSTextView has finished being loaded into a window?
  • Next by Date: Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
  • Previous by thread: Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
  • Next by thread: Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
  • Index(es):
    • Date
    • Thread