• 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 with 10-bit values

Participant ,
Sep 03, 2017 Sep 03, 2017

Copy link to clipboard

Copied

I am trying to write an output plugin for a restricted type of DPX file.  If I have a comp that has 16-bit pixels but contains 1-=bit Cineon or DPX values, is there anyway I can tell on the output whether the PF_Pixel16 contains 10-bit or 16-bit values?

Does every comp in After Effects work on floating point values with a maximum of 1.0 and then just translate that into 8-bt or 16-bit values to display for the user?  Is there anyway to have pixel values in excess of 1.0 in After Effects.  I am under the impression that proper EXR files can easily contain values above 1.0, but it is unclear to me how After Effects deals with them when it imports the image.

I have written DPX files where the header says the maximum value is 65535 rather than 32768 and when I import them into After Effects the values come in as half of what I thought they were written as.  This implies to me that After Effects interprets the max value in a DPX file as 1.0 and then scales all the values.  Is this true?

Thanks.

TOPICS
SDK

Views

855

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

correct answers 1 Correct answer

Adobe Employee , Sep 07, 2017 Sep 07, 2017

Hi RGPatt,

The working depth of an AE comp will be 8-bit, 16-bit, or 32-bit, depending on the Project Settings.  So the frames your AEIO output plug-in gets will be one of those formats.  From the frame itself, it's not apparent what the pixel depths of the source media are.  However, it is technically possible to programatically inspect the layers one by one.  However keep in mind that there are other factors such as effects applied.

Here's the Help article on Project color depth:

https://helpx.adobe.com/after-effects/using/color-basics.html#color_depth_and_high_dynamic_range_color

...

Votes

Translate

Translate
Adobe Employee ,
Sep 07, 2017 Sep 07, 2017

Copy link to clipboard

Copied

Hi RGPatt,

The working depth of an AE comp will be 8-bit, 16-bit, or 32-bit, depending on the Project Settings.  So the frames your AEIO output plug-in gets will be one of those formats.  From the frame itself, it's not apparent what the pixel depths of the source media are.  However, it is technically possible to programatically inspect the layers one by one.  However keep in mind that there are other factors such as effects applied.

Here's the Help article on Project color depth:

https://helpx.adobe.com/after-effects/using/color-basics.html#color_depth_and_high_dynamic_range_col...

8-bit and 16-bit format do not contain super whites or super blacks.

The 16-bit format uses channels that go from black at 0 to white at 32768, like Premiere Pro and Photoshop 16-bit formats.

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
Participant ,
Sep 07, 2017 Sep 07, 2017

Copy link to clipboard

Copied

I appreciate your response.

I think After Effects may want to re-think some of this.  It is possible for DPX files to have either 10-bit or 16-bit values and it is possible for 16-bit DPX files to have superwhites, i.e. values that are the equivalent of greater than 1.0 in floating point.  There is a spec for a DPX file containing Academy Density Exchange (ADX) values based on Academy Printing Density.  It is not a widely used format, but it may become more widely used as archives digitize more of their film.

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 ,
Sep 07, 2017 Sep 07, 2017

Copy link to clipboard

Copied

For now, this format could be supported if the project is in 32-bit float mode, and the importer would need to bring in the superwhites as 32-bit float frames.

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
Participant ,
Sep 07, 2017 Sep 07, 2017

Copy link to clipboard

Copied

Thanks.  I guess I'm suggesting that the built-in DPX importer should be updated to deal with Version 2.0 DPX files with max file values of 65,535,  This can be set in a header field for the DPX file and should not be ignored by the importer.

OFF TOPIC:  Since I have gotten your attention can you tell me what the currently preferred method for opening and reading a file on OS 10.12 is when given a path that is A_UTF16Char?

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 ,
Sep 07, 2017 Sep 07, 2017

Copy link to clipboard

Copied

LATEST

Sure, responding directly to your question here:

AEGP_GetOutSpecFilePath

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