Hello, I have the Core Image Problems in 10.6. I try this:
// Create CIImage from CGImageRef (contents CALayer)
CIImage *myCIImage = [CIImage imageWithCGImage:(CGImageRef) sublayer.contents];
// Create PerspectiveTransform filter
CIFilter *perspectiveFilter = [CIFilter filterWithName:@"CIPerspectiveTransform"];
// Set filter's parameter
[perspectiveFilter setDefaults];
[perspectiveFilter setValue:myCIImage forKey:@"inputImage"];
[perspectiveFilter setValue:topLeft forKey:@"inputTopLeft"];
// And the other ones using CIVector
[perspectiveFilter setName:@"perspective"];
// Set filter's parameter
[perspectiveFilter setDefaults];
[perspectiveFilter setValue:myCIImage forKey:@"inputImage"];
[perspectiveFilter setValue:topLeft forKey:@"inputTopLeft"];
// And the other ones using CIVector
[perspectiveFilter setName:@"perspective"];
// Apply CIPerspectiveTransform
sublayer.filters = [NSArray arrayWithObject:perspectiveFilter];
I compile and build and when I apply filter in runtime, console print this:
CoreImage: ROI is not tilable:
APPLY perspective DOD [50,50 50x50] ROI [50,50 26x26] RGBA_H
AFFINE [1 -0 -0 1 -16517.9 -16564] DOD [-16517.9,-16564 32768x32768] ROI [-16518,-16564 17041x17041] ARGB_8 ...
I have read this post.
How I could disable the hardware renderer? Where I have to read and apply CIContext?
Excuse my bad english, thank.