Skip to content

Openfx filters#1271

Merged
ddennedy merged 5 commits into
masterfrom
openfx_filters
Jul 17, 2026
Merged

Openfx filters#1271
ddennedy merged 5 commits into
masterfrom
openfx_filters

Conversation

@bmatherly

Copy link
Copy Markdown
Member

This PR does not change the number of openfx filters that are available. It just skips registering a filter if it is a duplicate. It also adds some diagnostics that are useful when debugging plugin detection and capabilities.

Some plugins are registered twice in the library. This change will
not bother to create a filter service if it already exists.

Affected openfx plugins:
net.sf.openfx.HueCorrect
net.sf.openfx.MergePlugin
net.sf.openfx.MergePlus
net.sf.openfx.MergeMatte
net.sf.openfx.MergeMultiply
net.sf.openfx.MergeIn
net.sf.openfx.MergeOut
net.sf.openfx.MergeScreen
net.sf.openfx.MergeMax
net.sf.openfx.MergeMin
net.sf.openfx.MergeDifference
net.sf.openfx.MergeRoto
net.sf.openfx.Reformat
net.sf.openfx.ShufflePlugin
net.fxarena.openfx.Text
fr.inria.openfx.OIIOResize
net.sf.cimg.CImgBlur
net.sf.cimg.CImgLaplacian
net.sf.cimg.CImgChromaBlur
net.sf.cimg.CImgBloom
Only used for diagnostics, currently

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR improves OpenFX plugin discovery in the openfx module by adding optional diagnostics during repository initialization and by avoiding registering duplicate OpenFX filters (same derived MLT service key).

Changes:

  • Add compile-time toggles to enable OpenFX discovery diagnostics and optionally filter logs by plugin identifier substring.
  • Add detailed diagnostic logging around plugin detection decisions (load/describe/context/pixel-depth/clip info).
  • Skip registering OpenFX filters when the derived service key already exists.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.

File Description
src/modules/openfx/mlt_openfx.h Adds diagnostic toggles and a helper to gate discovery logs.
src/modules/openfx/mlt_openfx.c Adds diagnostic logging helpers and logs acceptance/rejection reasons during plugin detection.
src/modules/openfx/factory.c Skips duplicate service keys and emits discovery/registration diagnostics during bundle scanning.

Comment thread src/modules/openfx/mlt_openfx.c
Comment thread src/modules/openfx/mlt_openfx.c
Comment thread src/modules/openfx/mlt_openfx.c
Comment thread src/modules/openfx/mlt_openfx.c Outdated
Comment thread src/modules/openfx/mlt_openfx.c
Comment thread src/modules/openfx/factory.c Outdated
Comment thread src/modules/openfx/factory.c
Memory leak, use after free, allocation failure check
@ddennedy ddennedy added this to the v7.42.0 milestone Jul 17, 2026
@ddennedy
ddennedy merged commit 8166aab into master Jul 17, 2026
15 checks passed
@ddennedy
ddennedy deleted the openfx_filters branch July 17, 2026 04:25
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.

3 participants