FxTemporalImageAPI return zero'd out buffers
FxTemporalImageAPI return zero'd out buffers
- Subject: FxTemporalImageAPI return zero'd out buffers
- From: Brad Wright <email@hidden>
- Date: Wed, 30 Jul 2008 14:52:39 -0700
I updated everything to the latest versions of FCP and the FXPlug
SDK, but I still get zero byte buffers from FCP. Here's the code
that I'm using:
tempororalImageApi = [_apiManager apiForProtocol:@protocol
(FxTemporalImageAPI)];
if (tempororalImageApi==NULL)
{
NSLog(@"Unable to get temporal image API\n");
return NO;
}
imageInfo.depth = kFxDepth_UINT8;
imageInfo.qualityLevel = renderInfo.qualityLevel;
if ([tempororalImageApi getInputBitmap:(FxBitmap **) &myBitmapImage
withInfo:(FxRenderInfo) imageInfo atTime:(double) renderInfo.frame]==NO)
{
NSLog(@"Failed to retrieve the original Bitmap image\n");
return NO;
}
char* testPointer = [myBitmapImage dataPtr]; //<--- The data pointer
is all zero'd out. There's no image data whatsoever.
I could get this to work in the previous versions of FCP 5 and 6 by
placing a clip in the timeline that didn't match the sequence
settings. For some reason that made FCP return the correct image data.
Brad Wright
_______________________________________________
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