Re: up-side-down image in Motion update
Re: up-side-down image in Motion update
- Subject: Re: up-side-down image in Motion update
- From: Garrick Meeker <email@hidden>
- Date: Tue, 24 Apr 2012 19:59:29 -0700
I've noticed that too. Also when calling getInputImage from parameterChanged, the result is 8-bit (even if colorInfo is linear!) To make matters worse, the conversion to 8-bit doesn't appear to clamp and I get stray blue pixels (with kFxPropertyKey_DesiredProcessingColorInfo set to kFxImageColorInfo_RGB_GAMMA_VIDEO). Fortunately these issues aren't deal breakers in my case. I'll file a bug tomorrow.
Since host cap still returns Motion, you need to do this. You'll need the version number too in case future versions change these behaviors. (I've heard that the identifier can be "finalcut" or "finalcuttrial".)
NSBundle *appBundle = [NSBundle mainBundle];
if (appBundle != NULL) {
NSString* app = [appBundle bundleIdentifier];
if ([app caseInsensitiveCompare:@"com.apple.finalcut"] == NSOrderedSame ||
[app caseInsensitiveCompare:@"com.apple.finalcuttrial"] == NSOrderedSame) {
...
NSString *version = [[appBundle infoDictionary] objectForKey:@"CFBundleShortVersionString"];
if (version) {
const char *s = [version UTF8String];
int major, minor, bug;
if (sscanf(s, "%d.%d.%d", &major, &minor, &bug) == 3) {
} else if (sscanf(s, "%d.%d", &major, &minor) == 2) {
}
}
}
}
On Apr 23, 2012, at 6:28 AM, Paul Miller wrote:
> I notice that in the latest Motion update the image is up-side-down now when using getInputImage (for custom UI preview purposes). Well, technically it now matches the orientation field in the bitmap info - but FCPX is still lying/doing it the old way.
>
> 1. can we get this fixed in FCPX soon?
> 2. what's the recommended way to detect the difference between Motion/FCPX now so I can work around the problem?
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Pro-apps-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden