Quantcast
Channel: Adobe Community : Popular Discussions - Premiere Pro SDK
Viewing all articles
Browse latest Browse all 53010

background is not transparent on transition.

$
0
0

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


Viewing all articles
Browse latest Browse all 53010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>