PF_PixelFormat Help
Hi gang;
I believe I am using the PF_Pixelformat function correctly, yet I am getting incorrect results.
My plugin should use 8 and 16 bits per channel color depths only.
So in the GlobalSetup I use the flag:
PF_OutFlag_DEEP_COLOR_AWARE;
Then, in my render function I declare the following:
AEGP_SuiteHandler suites(in_data->pica_basicP);
PF_WorldSuite2 *wsP = NULL;
PF_PixelFormat format = PF_PixelFormat_INVALID;
ERR(suites.Pica()->AcquireSuite(kPFWorldSuite, kPFWorldSuiteVersion2, (const void**)&wsP));
ERR(wsP->PF_GetPixelFormat(output, &format));
And finally, I can check my color depth mode by using:
if (format == PF_PixelFormat_ARGB32) // 8 bit
if (format == PF_PixelFormat_ARGB64) // 16 bit
if (format == PF_PixelFormat_ARGB128) // 32 bit (I am not using this color depth)
The problem is that when I test this in After Effects, it does not differentiate between 16 bit and 32 bit color mode. It tries to the generate the effect even if I switch to 32 bit color mode, and then crashes. Between 8 and 16, it certainly differentiates.
I should mention I am checking out another layer with this plugin but I don't think that could be the issue. What could I be doing wrong here?
Thanks in advance,
-Rich
