CVFilter are now properly created and applied

but can't be controlled from the gui (yet)
This commit is contained in:
xant
2010-06-14 23:21:38 +02:00
parent fa51e2706d
commit 2a520b4e84
5 changed files with 48 additions and 16 deletions

View File

@@ -63,10 +63,12 @@
- (void)applyFilter:(CIFilter *)filter
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[filter setValue:_image forKey:@"inputImage"];
CIImage *outputImage = [filter valueForKey:@"outputImage"];
[_image release];
_image = [outputImage retain];
[pool release];
}
@end