Skip to content

test: Extract and characterize encoder texture-input activity query before Rust swap #5212

Closed

Description

@zackees

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.

Activity

  1. added
    port
    ready
    P2
    size:S
    on Nov 19, 2026
  2. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    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.

  3. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2portreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions