Re: FxPlug FxTemporalImageAPI gets incorrect images in FCP Digital Cinema Desktop Preview
Re: FxPlug FxTemporalImageAPI gets incorrect images in FCP Digital Cinema Desktop Preview
- Subject: Re: FxPlug FxTemporalImageAPI gets incorrect images in FCP Digital Cinema Desktop Preview
- From: Paul Schneider <email@hidden>
- Date: Thu, 20 Dec 2007 14:45:24 -0500
Hi, Ben,
I'm not aware of anything special with the Digital Cinema Desktop.
I'll take a look and see if something unexpected is happening.
On Dec 20, 2007, at 12:43 PM, Benjamin Kent wrote:
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
_______________________________________________
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