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

Dynamic Mask: Implement sRGB and HDR support, and fix #819 #967

Merged
merged 1 commit into from
Nov 4, 2022

Conversation

Xaymar
Copy link
Contributor

@Xaymar Xaymar commented Oct 30, 2022

Explain the Pull Request

Fixes #819 (see commits).

Completion Checklist

  • I have added myself to the Copyright and License headers and files.
  • I will maintain this code in the future and have added myself to CODEOWNERS.
  • I have tested this change on the following platforms:
    • MacOS 10.15
    • MacOS 11
    • MacOS 12
    • Ubuntu 20.04
    • Ubuntu 22.04
    • Windows 10
    • Windows 11

@Xaymar Xaymar linked an issue Oct 30, 2022 that may be closed by this pull request
@Xaymar Xaymar force-pushed the bug/819-dynamic-mask-causes-double-free-crash branch 6 times, most recently from 4b791cc to 2447c13 Compare November 4, 2022 18:34
@Xaymar
Copy link
Contributor Author

Xaymar commented Nov 4, 2022

This PR marks Dynamic Mask as the first SDR and HDR compatible filter in StreamFX. It was a challenge to get this to work, but here we are!

@Xaymar Xaymar marked this pull request as ready for review November 4, 2022 18:41
The rendering code here was one of the older code bases, which was riddled with bugs and leaks. The new code doesn't look pretty, but it works for the time being until a better solution is found or made. It should be able to handle HDR inputs now, but it may not be completely correct yet. This also fixes the double-free bug.

As an additional improvement, I've moved the allocation of the effect to a shared class which should reduce the memory usage slightly when multiple effects are in play. And now selecting nothing selects the filter target itself without infinitely adding references to the filter. Good enough in my eyes.

Fixes #819
@Xaymar Xaymar force-pushed the bug/819-dynamic-mask-causes-double-free-crash branch from 2447c13 to 48f57a3 Compare November 4, 2022 19:26
@Xaymar Xaymar marked this pull request as draft November 4, 2022 19:31
@Xaymar Xaymar changed the title Fix #819 Dynamic Mask: Implement sRGB and HDR support, and fix #819 Nov 4, 2022
@Xaymar Xaymar marked this pull request as ready for review November 4, 2022 19:33
@Xaymar Xaymar merged commit 0f114f5 into master Nov 4, 2022
@Xaymar Xaymar deleted the bug/819-dynamic-mask-causes-double-free-crash branch November 4, 2022 19:40
@Xaymar Xaymar added this to the 0.12 milestone Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamic Mask causes double free crash
1 participant