Skip to content

obs-output: Port public encoder scaling-enabled getter (#3926) - #3927

Merged
zackees merged 4 commits into
masterfrom
port/3926-encoder-scaling-enabled
Nov 7, 2026
Merged

zackees merged 4 commits into
masterfrom
port/3926-encoder-scaling-enabled

Conversation

@zackees

@zackees zackees commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Fixes #3926; Refs #3856.

Ports only the public scaling-enabled getter to Rust. Preserves the NULL false result and exact debug diagnostic, either-axis scaling for audio and video encoders, and unchanged encoder state. The safe core reuses the existing size helper. A new borrowed field-address adapter avoids mirroring the private encoder layout. Oracle calls use the original C and its oracle-renamed size helper; log probes receive callbacks.

Status: GREEN cc3a83b is pushed. The workspace formatter check (cargo fmt --all --check via soldr) passed on it in the manager session, after full serial lint had passed.

Commit sequence:

  • 9856e35: actual-library C characterization.
  • 2b28409: separate building, verbatim C extraction.
  • bf5ad4f: Tier 1 RED; both tests fail at the intentional stub, exit 101.
  • cc3a83b: Rust GREEN, private field seam, real-header layout, differential coverage and per-port native registration.

Validation:

  • All six focused safe API, layout and differential tests pass.
  • Inverting the scaling result kills both deterministic and randomized differential tests, exit 101. GREEN was restored and all six tests passed again. Proptest persistence is disabled.
  • The C characterization and extraction each passed three repeats against both actual libraries.
  • Post-swap Tier 2 passed five selected encoder tests three times against each library: the new characterization, output-getter characterization, video reset, size steps and group-reconfigure walk. Library resolution identifies the intended hybrid and C-reference directories. All 1,767 exported symbols match.
  • The whole native-build module passed 130 top-level cases, with two additional child probes. All 914 obs-util tests and both doctests pass.
  • GCC and Clang accept the oracle, fixture, extracted group and existing blog log-link stub with strict format warnings.
  • Adapter discovery, registration entries, native portability, graph sorting, README policy, source-group inventory and port metadata checks pass.
  • Serial full lint passed, including formatting, repository self-tests, workspace and feature Clippy, and Dylint. The separate workspace formatter invocation remains blocked by the guard described above.
  • One primary read-only review found no actionable issues.

Test cost: 25 debug runs per new module; safe API under 0.01 seconds and 11,648 KiB RSS; parity at most 0.01 seconds and 16,492 KiB; registration at most 0.04 seconds and 10,448 KiB. No own threads; one isolated logging child process. No new Rust executable.

Public headers, existing C tests and WebSocket are unchanged. The new C characterization remains unchanged after its first commit. No intended behavior change or features-ledger entry. Tier 4 is inapplicable. Not verified locally: full Tier 2 suite, native Windows and macOS, and hosted CI. No local-gate attestation.

@zackees
zackees marked this pull request as ready for review November 7, 2026 19:34
@zackees
zackees enabled auto-merge November 7, 2026 19:34
@zackees
zackees added this pull request to the merge queue Nov 7, 2026
Merged via the queue into master with commit d0abdcd Nov 7, 2026
44 checks passed
@zackees
zackees deleted the port/3926-encoder-scaling-enabled branch November 7, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

rust: Port obs-encoder.c.h scaling-enabled getter to obs-output

1 participant