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

ofxImageEffect.h - Desired Premult #62

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

revisionfx
Copy link
Contributor

@revisionfx revisionfx commented Oct 20, 2019

This Property defines an host level policy. So effects receiving an ImageOpaque and Generator know to be Premult or Straight if they don't generate a full Alpha. See Standard Change issue #66.

This Property defines an host level policy. So effects receiving an ImageOpaque and Generator know to be Premult or Straight if they don't generate a full Alpha.
@revisionfx revisionfx mentioned this pull request Nov 12, 2019
16 tasks
Added clarification of interaction between kOfxImageEffectPropPreMultiplication clip preference and state of a particular instance regarding kOfxImageEffectHostDesiredPremult

- Type - string X 1
- Property Set - a plugin instance (read only)
- Default - 0
- Property Set - a plugin instance (read only). Ideally this information should already be available at parameter creation stage.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should add comments like "Ideally". Just "should" or "must". Who would be helped by this change?

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.
This Property defines an host level policy. It is for practical purposes considered global in the scope of a Project.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you say "It is for practical purposes considered global" are you really saying that a host should (or must) not change its value? If so, do you mean it must be constant per plugin instance, constant for all instances of a given plugin, or what? And why? Why couldn't a host pass different values to different instances?

This Property defines an host level policy.
This Property defines an host level policy. It is for practical purposes considered global in the scope of a Project.

Recommended Interpretation: If an host adds support for OfxImageEffectHostDesiredPremult, the host should set on the output the same value on output clip kOfxImageEffectPropPreMultiplication preference
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs some grammar work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:) - upping the standard now

Also should not say Recommended but Expected here I guess

Fixes comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants