You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: Extract and characterize encoder texture-input activity query before Rust swap #5212
C-only prerequisite for the Phase 6 encoder texture-input query, later targeting obs-encoder.
Characterize obs_encoder_video_tex_active in libobs/obs-encoder.c.h:1648-1662 with a portable real-private-header fixture and deterministic recording fake mix lookup. Pin the exact media pointer and one lookup per call, missing mix returning false, NV12/P010 selecting only the matching C-owned flag, and every other format returning false. Keep the live encoder/core preconditions; no new NULL-encoder behavior or real GPU support assumptions. Leave test_encoder_tex_active_null.c unchanged.
Extract only the existing function verbatim into libobs/obs-encoder-video-tex-active.c.h, in the sorted libobs/build/libobs.core-output+.h.c unity group. Preserve the declared get_mix_for_video and its existing mutex-protected walk unchanged, as well as guard and flag-read order. No Rust, public-header edits, existing-C-test edits, WebSocket changes or workflow files.
Acceptance: original-C characterization, extraction-contract RED then behavior-neutral GREEN commits; tests.d pointer and sorted canonical test graph; agreeing native/source/module inventories; whole native_build:: module; focused Linux Tier 2 build of the new target and EVERY *_rust target; unchanged real-device characterization OFF/ON where available, export parity, ci/windows_link_check.py, and one full ./lint. Refresh forced PR-head refs and merge-tree overlap evidence before publication, serialize any conflicts with #5207, and remove temporary refs.
File a separate Rust-swap follow-up after publishing this prerequisite. That swap needs safe-core mirrors in the existing category binary, real-header adapter/layout tests, original-C differential/mutation checks, preserved lookup synchronization, and real C adapter link support in every standalone Rust-static consumer.
Decisions: P2 / port / size:S / ready. No functional dependency; #5207 is a landing-order constraint only when its shared registrations conflict.
Claiming: encoder texture-input activity C prerequisite, pool slot obs-studio5, branch test/5212-encoder-tex-active. 1. Add deterministic real-header recording characterization and prove the original C. 2. Commit extraction-contract RED then verbatim GREEN, preserving get_mix_for_video and its mutex walk. 3. Validate native_build, reference/hybrid Tier 2 plus every *_rust target, Windows/Darwin links and one full lint; refresh overlapping PR heads and publish according to backpressure. First PR expected this session; Rust swap will be a separately filed follow-up.
Landed on master in #5215 (f2b4085): the encoder texture-input activity query is characterized with a deterministic fake mix and extracted. The Rust swap is #5216.
Activity
zackees commentedon Nov 19, 2026
Claiming: encoder texture-input activity C prerequisite, pool slot obs-studio5, branch test/5212-encoder-tex-active. 1. Add deterministic real-header recording characterization and prove the original C. 2. Commit extraction-contract RED then verbatim GREEN, preserving get_mix_for_video and its mutex walk. 3. Validate native_build, reference/hybrid Tier 2 plus every *_rust target, Windows/Darwin links and one full lint; refresh overlapping PR heads and publish according to backpressure. First PR expected this session; Rust swap will be a separately filed follow-up.
zackees commentedon Nov 19, 2026
Landed on master in #5215 (f2b4085): the encoder texture-input activity query is characterized with a deterministic fake mix and extracted. The Rust swap is #5216.
libobs: characterize and extract encoder texture-input activity query…