[FCP FxPlug 1.2] Using FxTexture by modifying his pointer
[FCP FxPlug 1.2] Using FxTexture by modifying his pointer
- Subject: [FCP FxPlug 1.2] Using FxTexture by modifying his pointer
- From: "Gohin Julien (Neo-Soft)" <email@hidden>
- Date: Fri, 29 Jul 2011 16:08:13 +0200
- Acceptlanguage: en-US
- Thread-topic: [FCP FxPlug 1.2] Using FxTexture by modifying his pointer
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden