Home | History | Annotate | Download | only in cg

Lines Matching full:width

90     size_t width = CGImageGetWidth(baseImage);
92 size_t rowBytes = width * 4;
96 RetainPtr<CGContextRef> baseContext(AdoptCF, CGBitmapContextCreate(baseBuffer, width, height, 8, rowBytes, CGImageGetColorSpace(baseImage), kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host));
97 CGContextDrawImage(baseContext.get(), CGRectMake(0, 0, width, height), baseImage);
101 RetainPtr<CGContextRef> context(AdoptCF, CGBitmapContextCreate(buffer, width, height, 8, rowBytes, CGImageGetColorSpace(testImage), kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host));
102 CGContextDrawImage(context.get(), CGRectMake(0, 0, width, height), testImage);
105 void* diffBuffer = malloc(width * height);
113 for (size_t x = 0; x < width; ++x) {
136 difference = 100.0f * sum / (height * width);
145 for(size_t p = 0; p < height * width; ++p)
150 RetainPtr<CGDataProviderRef> provider(AdoptCF, CGDataProviderCreateWithData(0, diffBuffer, width * height, releaseMallocBuffer));
151 diffImage.adoptCF(CGImageCreate(width, height, 8, 8, width, diffColorspace, 0, provider.get(), 0, false, kCGRenderingIntentDefault));