Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/desired premult #57

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions include/ofxImageEffect.h
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,21 @@ See the documentation on clip preferences for more details on how this is used w
/** Used to flag an image as unpremultiplied */
#define kOfxImageUnPreMultiplied "OfxImageAlphaUnPremultiplied"

/** @brief Indicates whether an effect should premultiply or not on output.
This provides clarification for generators or effect where input is kOfxImageOpaque.

- Type - string X 1
- Property Set - a plugin instance (read only)
- Default - 0
Valid Values - This must be one of

- kOfxImagePreMultiplied - the image is premultiplied by its alpha
- kOfxImageUnPreMultiplied - the image is unpremultiplied

This Property defines an host level policy.
*/

#define kOfxImageEffectHostDesiredPremult "OfxImageEffectHostDesiredPremult"

/** @brief Indicates the bit depths support by a plug-in or host

Expand Down