Hi, All.
I am creating a transition plugin from SDK_CrossDissolve.
By the way, I have a strange issue.
I set all pixel of output to {0,0,0,0} on plugin code, but the background is not transparent and layer image.
How can I set transparent background?
//code
...
PF_LayerDef* dest = output;
char* destData = (char*)dest->data;
...
for (int y = 0; y < output->height; y++)
{
for (int x = 0; x < output->width; x++)
{
((float*)destData)[(y * dest->rowbytes) / 4 + x * 4 + 0] = 0;
((float*)destData)[(y * dest->rowbytes) / 4 + x * 4 + 1] = 0;
((float*)destData)[(y * dest->rowbytes) / 4 + x * 4 + 2] = 0;
((float*)destData)[(y * dest->rowbytes) / 4 + x * 4 + 3] = 0;
}
}
.....
//result