• 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
custom image unit not working when called from a Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

custom image unit not working when called from a Cocoa app


  • Subject: custom image unit not working when called from a Cocoa app
  • From: Josh Burnett <email@hidden>
  • Date: Sat, 10 May 2008 23:49:57 -0400

I've written a custom image unit and gotten it working satisfactorily in Core Image Fun House. However, when I go to add it to a filter chain in my Cocoa app, the filter chain stops working. It works fine without my custom filter added into the mix. Looks like I'm in a similar situation to this earlier post, which didn't get a response:

Custom Image Unit/CIFilter troubles
http://www.cocoabuilder.com/archive/message/cocoa/2005/7/8/141081

As with Petteri's case, I'm using [CIPlugIn loadAllPlugIns] to load my plugin, which is stored in ~/Library/Graphics/Image Units. Then, in my view's drawRect method I use the following code in to call the filter:

shadowsFilter   = [CIFilter filterWithName: @"ShadowRecovery"
	keysAndValues:
		@"inputImage", imageOut,
		@"inputRange", [NSNumber numberWithFloat: shadowRangeValue],
		@"inputBoost", [NSNumber numberWithFloat: shadowBoostValue],
		nil];
imageOut = [shadowsFilter valueForKey: @"outputImage"];
[shadowsFilter retain];


My image unit is a non-executable one, with only a cikernel. As such, I haven't defined the 'outputImage' method. Is there something that I'm missing here? My filter works fine in Core Image Fun House, and I don't know how to proceed.


Thanks for any pointers,

Josh
_______________________________________________

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


  • Prev by Date: Re: Cocoa coding style (was Re: Did I reinvent the wheel?)
  • Next by Date: Re: Cocoa coding style (was Re: Did I reinvent the wheel?)
  • Previous by thread: Re: Yann Disser Resizing NSTableView columns
  • Next by thread: ID3 Album Art
  • Index(es):
    • Date
    • Thread