[FCP FxPlug 1.2] Using FxTexture by modifying his pointer
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Thread-index: AcxN+UTTVJKdBzjYSjOs3yR0YpohiA== Thread-topic: [FCP FxPlug 1.2] Using FxTexture by modifying his pointer User-agent: Microsoft-MacOutlook/14.12.0.110505 Hello, I'm new on developping FCP Plug-Ins (my configuration FCP 7.0, SDK 1.2). I'm trying to use FxTexture input pointer data, modify it (change somes RGBA pixels) and restore the new pointer to the FxTexture output but it in FCP, a black picture appears in the canvas. In the RenderOutput : FxTexture *texture = (FxTexture*)inImage; GLubyte *inPtr = (GLubyte*)[texture createData:GL_RGBA withType:GL_UNSIGNED_BYTE]; //get the contains of "inPtr", put it into my engine which will modify it FxTexture *texture = (FxTexture*)outImage; GLubyte *outPtr = (GLubyte*)[texture createData:GL_RGBA withType:GL_UNSIGNED_BYTE]; //copy inPtr into outPtr All seems good at this step, outPtr is well set with the new value. And finally, i tried to set the new modified pointer in the output Texture but it don't work in the canvas ? [texture setData:(GLubyte *)outPtr]; Maybe i miss something ? Any ideas ? Thank you for your help. Max Canet, Technicolor, France _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Gohin Julien (Neo-Soft)