site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Hi, Ben, On Dec 20, 2007, at 12:43 PM, Benjamin Kent wrote: Hi, 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]); } } 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/pschneider%40apple.com _______________________________________________ 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 not aware of anything special with the Digital Cinema Desktop. I'll take a look and see if something unexpected is happening. 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]; 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 pschneider@apple.com This email sent to site_archiver@lists.apple.com