Repository navigation
obs-graphics: Port effect name and index lookups - #1843
Merged
Merged
Conversation
The five cmocka cases call the obs-graphics safe core. Each one panics in todo!() because the lookups are not implemented yet. soldr cargo test -p obs-graphics --test obs-tests-graphics effect_lookups: 0 passed, 5 failed (not yet implemented). Refs obs-rust#1822
Implement the 13 graphics.h lookups in obs-graphics. Param index uses >= and is null at the count. Annotation index and pass index use >, so an index equal to the count is one past the array. That return is characterized, not endorsed. The C file moves into the ported graphics group. Hybrid libobs exports the Rust symbols. Tier 1, layout, and the C oracle agree. Fixes obs-rust#1822
nathan-v
force-pushed
the
port/effect-lookups
branch
from
October 22, 2026 23:47
056a97b to
35d6a4c
Compare
nathan-v
marked this pull request as ready for review
October 23, 2026 00:09
This was referenced Oct 25, 2026
rust: Port the effect parameter values in graphics/effect.c to obs-graphics (effect.c slice 1)
#2409
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1822
What and why
The 13 effect name and index lookups from
graphics/effect-lookups.c.hnow live in obs-graphics. Param index uses>=and is null at the count. Annotation index and pass index use>, so an index equal to the count is one past the array. That return is characterized, not endorsed. No intentional difference from the C.A temporary change of that
>to>=madelookups_match_oraclefail: Rust returned null and the oracle returned the one-past pointer. It was reverted before this commit.RED → GREEN
36f084e5a73cbe374b34579a115274bf61c44322. The fiveeffect_lookupstests panicked intodo!()(not yet implemented). Fast Gate on the first draft head056a97b41failed on those five. Tier 2 on that head passed because the C file was still in the old group. The branch was rebased onto582a4c3edbefore GREEN, so the RED sha changed.35d6a4c7e19e473b851b6c41f98574be52a52582. The eighteffect_lookupstests passed inside the workspace rust-test lane. Workspace clippy-D warningsand dylint passed. In the arm64obs-rust-linux-validateimage,test_effect_lookupspassed 5/5 againstlibobs-c-referenceand 5/5 against hybridlibobs. The twolibobs.sofiles export the same 1766 symbols, including these 13. Hybrid libobs compileslibobs.graphics+.h.cand does not compilelibobs.ported-graphics+.h.c. The C reference compiles the ported group, which includeseffect-lookups.c.h.The full local gate was not stamped. On this Mac, soldr refuses the Windows GNU target, the cross lane's host cc has no
windows.h, severalci/unit tests fail in host probes, and the Docker mount case-foldsObs.hontoobs.hsotest_ws_screenshot_srgbdoes not compile. libobs, libobs-c-reference, andtest_effect_lookupsdid build. PR CI runs the Linux suite.Checklist
mastere7a272ffd. RED36f084e5a, GREEN35d6a4c7e.docs/features.mdis added or updated (not applicable: no user-visible change)-W..., ratchets): none