Re: CIImage directly to CALayer contents?
Re: CIImage directly to CALayer contents?
- Subject: Re: CIImage directly to CALayer contents?
- From: David Duncan <email@hidden>
- Date: Fri, 1 Jul 2011 09:10:45 -0700
On Jul 1, 2011, at 3:16 AM, Oleg Krupnov wrote:
> Now suppose that I have a CIImage constructed with +imageWithContentsOfURL. The image is loaded (lazily) directly to VRAM.
Not quite. There is still a trip through RAM that is necessary to get to VRAM (basically it is nearly impossible to go directly to VRAM, primarily because the CPU can't see it directly).
> If so, is there a way to pass a CIImage directly to CALayer without going beyond VRAM?
I'm fairly certain that CALayer doesn't support a CIImage as its contents, but you can assign a CGImageRef to it, and then assign all of the filters you used to generate that CIImage to the layer. In the case you outline however, there is no advantage to be had – just assign the CGImageRef to the CALayer's contents and you are likely to be as optimal as possible.
--
David Duncan
_______________________________________________
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