• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

PF_Pixel16

New Here ,
Apr 04, 2007 Apr 04, 2007

Copy link to clipboard

Copied

Hi,

Can anybody please tell me how I can obtain PF_Pixel16 data from PF_World (wP) ?

Thanks,
Ingchelio
TOPICS
SDK

Views

3.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 04, 2007 Apr 04, 2007

Copy link to clipboard

Copied

PF_Pixel16 *p = NULL;
PF_GET_PIXEL_DATA16(&world, NULL, &p);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 04, 2007 Apr 04, 2007

Copy link to clipboard

Copied

That's right, IF the world contains 16bpc pixels. Check for PF_WorldFlag_DEEP in the world, first.

Also, shouldn't we all be processing 32bpc pixels now? ;)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 04, 2007 Apr 04, 2007

Copy link to clipboard

Copied

Alrite !!!
Thanks very much :)

Ingchelio

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 05, 2007 Apr 05, 2007

Copy link to clipboard

Copied

I checked PF_WorldFlag_DEEP using the macro PF_WORLD_IS_DEEP
but everytime I checked, it always says that world is 8 bit,
even though I have set project settings to be 16 bit and
in the color pallete, it seems that the values of R, G, and B are already beyond 255.

Is there anything wrong ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 05, 2007 Apr 05, 2007

Copy link to clipboard

Copied

How are you telling AE you want deep pixels? (i.e., are you setting appropriate outflags and outflags2 in the PiPL and during PF_Cmd_GLOBAL_SETUP?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 05, 2007 Apr 05, 2007

Copy link to clipboard

Copied

I set the outflags only during PF_Cmd_GLOBAL_SETUP like this :

DllExport PF_Err main ( PF_Cmd cmd,
PF_InData *in_data,
PF_OutData *out_data,
PF_ParamDef *params[],
PF_LayerDef *output )
{
PF_Err err = PF_Err_NONE;

switch (cmd)
{
case PF_Cmd_GLOBAL_SETUP:
out_data->out_flags = out_data->out_flags | PF_OutFlag_DEEP_COLOR_AWARE; //supporting 16 bit color channel
break;

}
return err;
}

Is it not enough or is there anything wrong ?
Sorry about the tabbing but there is nothing I can do about it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 05, 2007 Apr 05, 2007

Copy link to clipboard

Copied

I have also added

/* [6] */
AE_Effect_Global_OutFlags {
33554432
},

to IO_PiPL.r but still the macro PF_WORLD_IS_DEEP returns 0.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 11, 2007 Apr 11, 2007

Copy link to clipboard

Copied

> out_data->out_flags = out_data->out_flags | PF_OutFlag_DEEP_COLOR_AWARE;

The above is a logical statement, but doesn't set the flag. You need

|=

not

|

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 12, 2007 Apr 12, 2007

Copy link to clipboard

Copied

Thanks, Brooce.

But I have changed that to

out_data->out_flags |= PF_OutFlag_DEEP_COLOR_AWARE;

and still it does not work.
Wonder if something else cause it not to work.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 22, 2007 Apr 22, 2007

Copy link to clipboard

Copied

Sorry, but I have made a mistake.
This plug-in is actually a AEIO plugin, not AEGP plugin.
So I cannot specify any AE_Effect_Global_OutFlags.

I have somehow managed to get AE to draw 16 bit by specifying
AEIO_MFlag_CAN_DRAW_DEEP to AEIO_ModuleInfo's flags.

Now the only problem is
when rendering, AE somehow claims that the world is 8 bit again,
even though the colors are actually 16 bit.

So I could import 16 bit contents and draw 16 bit contents,
but cannot export 16 bit contents.

Do I have to specify more flags to be able to render 16 bits ?
I have searched in the sample codes and headers but could not find any.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 24, 2007 Apr 24, 2007

Copy link to clipboard

Copied

LATEST
Finally able to render 16 bits.
Did not know I had to set AEIO_OptionsFlags in My_GetDepths
and set bit depth with AEGP_SetOutSpecDepth.

Anyway, thanks for all the help :D

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines