The debug console for my test Core Filters application shows this message:
CGImageRef 0x7a0e890 has an addition to the string byte. Performing an expensive unpacking operation!
I could not find a hit for this exact message (minus the pointer) in the headers or in a Google search.
My questions are: (1) what does this mean and (2) how can I fix the situation?
Below is an example of how I create filtered UIImage using CIFilter.
- (UIImage*)sepia
{
CIImage *beginImage = [CIImage imageWithCGImage:[self CGImage]];
CIContext *context = [CIContext contextWithOptions:nil];
CIFilter *filter = [CIFilter filterWithName:@"CISepiaTone"
keysAndValues: kCIInputImageKey, beginImage,
@"inputIntensity", [NSNumber numberWithFloat:0.8], nil];
CIImage *outputImage = [filter outputImage];
CGImageRef cgimg =
[context createCGImage:outputImage fromRect:[outputImage extent]];
UIImage *newImg = [UIImage imageWithCGImage:cgimg];
self = newImg;
CGImageRelease(cgimg);
return self;
}
source
share