Skip to content

test(ofx): optional-mask fixture and clip connection lifecycle tests - #12

Merged
Mike-Solar merged 1 commit into
OakVideoEditorCommunity:mainfrom
RiccardoBifulco:test/ofx-optional-mask-fixture
Nov 21, 2026
Merged

Mike-Solar merged 1 commit into
OakVideoEditorCommunity:mainfrom
RiccardoBifulco:test/ofx-optional-mask-fixture

Conversation

@RiccardoBifulco

Copy link
Copy Markdown
Contributor

Closes #3

Changes

  • New fixture effect org.quercus.test-plugin.mask in cbits/quercus_test_plugin.c with an optional Mask clip (OfxImageClipPropOptional = 1, OfxImageClipPropIsMask = 1). Documented behaviour: mask connected → output RGB = Source RGB × Mask red, alpha from Source; mask absent → Source passes through.
  • New tests/mask_clip_test.rs (synthetic CPU textures, no GPU, no third-party plugin):
    • descriptor flags on the Mask clip (Source/Output are not masks);
    • Connected state: disconnected → attach → connected → clear → disconnected → reattach → connected;
    • mask connection is independent of Source, and the plain test plugin still exposes only Source/Output.
  • Existing plugins are untouched. The exported plugin count changes 5 → 6, so the cache.count() assertions in src/host/tests.rs are updated.

Testing

mask_clip_test, negotiation_test, ofx_roundtrip, suites_test, push_button_test pass; cargo fmt is clean. The fixture's render path compiles but is not exercised here, since render-driver mask mapping is out of scope for this issue.

Not verified: cargo test --lib does not compile on this checkout because of an existing error in gl_bridge.rs (env unresolved), so the updated host count assertions have not been run. node_e2e_test also fails to link locally.

Add org.quercus.test-plugin.mask, a separate fixture effect with an
optional Mask clip (OfxImageClipPropOptional + OfxImageClipPropIsMask).
Documented behaviour: mask connected -> output RGB = Source RGB x Mask
red, alpha from Source; mask absent -> Source passes through.

Add host-side tests for the descriptor flags and the Connected state
across attach, clear and reattach using synthetic CPU textures. The
existing test plugins are unchanged; the exported plugin count goes 5 -> 6.
Copilot AI balanced review requested due to automatic review settings November 20, 2026 18:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Mike-Solar added a commit that referenced this pull request Nov 21, 2026
…xture

test(ofx): optional-mask fixture and clip connection lifecycle tests
@Mike-Solar
Mike-Solar merged commit 2fb2a7e into OakVideoEditorCommunity:main Nov 21, 2026
1 of 3 checks passed
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.

[OFX][TWiR] Add optional-mask fixture and clip connection lifecycle tests

3 participants