FxPlug FxTemporalImageAPI gets incorrect images in FCP Digital Cinema Desktop Preview
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com User-agent: Thunderbird 2.0.0.0 (Macintosh/20070326) Hi, 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 (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Benjamin Kent