Hey guys,
Trying to get into the pixelFormats here.
I'm adjusting the SDK's Cross Dissolve in order to find out if it's possible to write a transition that only supports PrPixelFormat_BGRA_4444_32f.
This way I can get into making quality plugins without having to write seperated code for different PixelFormats.
"Starting in CS4, plug-ins no longer need to support 8-bit BGRA at a minimum."
- I say: let PP handle the nessesary conversions. Let me focus on just the BGRA4444_32f
So I'm banishing some lines of code:
staticprMALError GetPixelFormatsSupported(EffectHandle theData)
{
prMALError result = esNoErr;
switch((*theData)->pixelFormatIndex)
{
/* case 0:
(*theData)->pixelFormatSupported = PrPixelFormat_BGRA_4444_8u;
break;
case 1:
(*theData)->pixelFormatSupported = PrPixelFormat_VUYA_4444_8u;
break;
*/
// These pixel formats are only available in Premiere Pro 2.0 and later
case2:
if ((*theData)->version>= 9)
{
(*theData)->pixelFormatSupported = PrPixelFormat_BGRA_4444_32f;
}
else
{
result = esBadFormatIndex;
}
break;
/* case 3:
(*theData)->pixelFormatSupported = PrPixelFormat_VUYA_4444_32f;
break;
*/
default:
result = esBadFormatIndex;
}
return result;
}
So we are down to the one and only PrPixelFormat_BGRA_4444_32f
I wanted to see what happens.
But I didn't got the feeling it wasn't working, because it still showed the YUV sign in the effects tab.
So I messed around with this: Banished some other lines of code so it would only support 8u.
Well, at some point all the signs (32-bits and YUV) where gone in the Effects tab.
Now I want them back. But I can't...
I keep reloading the plug-in by restarting PP - nothing
I'm holding shift at the start of PP to refresh all the plugins. - nothing.
Redownloaded the fresh SDK pack, recompiled the cross dissolve with nothing changed - nothing.
started to get frustrated...
told the plugin not to cache itself, but to reload each time pp is started by adding:
case esCacheOnLoad:
result = esDoNotCacheOnLoad;
break;
to the selector switch: PREMPLUGENTRYDllExport xEffect (short selector, EffectHandle theData)
looked at the ~/library/adobe/premiere pro/5.5/plugin loading.log and found:
Loading /Library/Application Support/Adobe/Common/Plug-ins/CS5.5/MediaCore/Cross_Dissolve.bundle
The registry tells us not to cache so the plugin will be loaded from disk.
Loading from disk...
This plugin was recognized by loader 3dbe9220-aa71-4c9d-9342-4c239a83a825.
- So this is OK. - but then again it doesn't change anything with the recogition for being 32-bits enabled
So the SDK Cross Dissolve transition listed in the Effects tab still isn't showing me the 32bits sign, even with a freshly compiled original that should support both 32-bits color and YUV.
What am I missing here?
Cheers,
Jaap