Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compositing issues with output from Quartz Patch



Hello Everbodeeee,

I've a simple patch, with a single image input, an affine transform (that flips the image) to a clear and billboard (width 2).
Effectively, because the source image is upside down (coming from OpenGL) this patch just flips it. The idea is that I pass in a 128x128 image around the mouse cursor, and then replace what I took with the content of the patch - therefore being able to animate (and generally mess with) the content under the mouse at any time.


On Leopard it renders just fine.

However on Tiger it's as if the gamma has been bumped up hugely. It's not quite white, but close. You can still make out the fact that the image contains the right stuff, it's just the colors are way off.

When compositing, I'm setting up my color spaces using :

+ (CGColorSpaceRef) currentColorSpace {
	CMProfileRef current = nil;
	CGColorSpaceRef cSpace = nil;
	CMError error = CMGetSystemProfile(&current);
	if(error == 0) {
		cSpace = CGColorSpaceCreateWithPlatformColorSpace(current);
	} else {
		[self log:@"Can't get system profile color space, %lf", error];
	}
	
	if(cSpace == 0) {
		cSpace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);
	}
	return cSpace;
}

The idea being that I want to use the color space setup by the user.
All of my bitmap context creation uses the same color space (well, they all end up calling this method to get one - they don't share the same ref).


I've got a whole lot more I could write about creation of pixel buffers (and their color spaces), etc - but I don't want to cloud this first question with too much stuff.


Is there anything I should look for here - that's Tiger specific?

I'm at a bit of a loss! Primarily because it works so well on Leopard.

--
Regards,
Neil Clayton,  http://shinywhitebox.com







_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.