FxPlug FxTemporalImageAPI gets incorrect images in FCP Digital Cinema Desktop Preview
FxPlug FxTemporalImageAPI gets incorrect images in FCP Digital Cinema Desktop Preview
- Subject: FxPlug FxTemporalImageAPI gets incorrect images in FCP Digital Cinema Desktop Preview
- From: Benjamin Kent <email@hidden>
- Date: Thu, 20 Dec 2007 17:43:53 +0000
Hi,
I'm finding I get the incorrect images returned using FxTemporalImageAPI
when viewing in the Digital Cinema Desktop Preview.
So, to reproduce, I've added the following code to the SimpleMatte sdk
example. At the beginning of renderOutput, I've added:
id temporalImageAPI = [_apiManager
apiForProtocol:@protocol(FxTemporalImageAPI)];
if(temporalImageAPI!=NULL) {
FxBitmap * theBitmap = NULL;
BOOL result = [temporalImageAPI getInputBitmap:&theBitmap
withInfo:renderInfo atTime:renderInfo.frame];
UInt32 theDepth = [theBitmap depth];
if(theDepth==8) {
UInt8 * theDataPtr = (UInt8 *)[theBitmap dataPtr];
fprintf(stderr,"%d\n",theDataPtr[10]);
}
else {
float * theDataPtr = (float *)[theBitmap dataPtr];
fprintf(stderr,"%f\n",theDataPtr[10]);
}
}
I've also changed it so the mayRemapTime property is set to YES, and
added the FxTemporalImageAPI protocol in the Info.plist.
When the plug-in is applied in the normal viewer, the print statements
produce values you would expect given the images. When displaying in the
Digital Cinema Desktop Preview, the values seem to be incorrect.
Is there something simple I'm doing wrong?
Cheers
Ben
_______________________________________________
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