Skip to content

libobs: characterize and extract source frame initialization (Refs #5619) - #5634

Merged
zackees merged 3 commits into
masterfrom
test/5619-source-frame-init
Nov 25, 2026
Merged

zackees merged 3 commits into
masterfrom
test/5619-source-frame-init

Conversation

@zackees

@zackees zackees commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Refs #5619.

obs_source_frame_init is still inline in obs-source.c.h, so hybrid libobs cannot replace it independently. This prerequisite first characterizes its public C behavior, then moves its 17-line signature/body verbatim into obs-source-frame-init.c.h, under the same PCH and core-source unity group. It contains no Rust; the separate Rust swap must follow the extraction under the testing policy.

The new C fixture checks NULL logging and all eight plane slots over 18 supported format/size combinations, including odd dimensions, while preserving every unrelated source-frame byte. It runs without an OBS core or graphics context. Empty buffers are outside this returning-call fixture: an initial uncommitted empty-buffer case stopped at the allocator's existing zero-byte allocation boundary; the retained tests then passed a clean baseline run.

Characterization commit: 64faba7. Extraction commit: 3ced6a9. The local Darwin compile exposed a missing SIMDe header dependency in the new fixture registration; 023619c adds PRIVATE SIMDe::SIMDe without changing any C assertion or product code. The original signature/body compares exactly, and existing C tests and public headers are untouched. No graph registration file, Rust test executable, or workflow was added.

Local validation: baseline and extracted versions each passed 25 repetitions against BOTH C-reference and hybrid libobs, with loader resolution independently confirming each backend and identical sets of 1,769 exported symbols. The final 50 executable runs took at most 0.82 seconds each. Build-group checks passed 10/10; full SOLDR_PORCELAIN=0 ./lint passed on 3ced6a9 in 379.0 seconds; targeted gersemi passed after the CMake-only SIMDe correction; one primary clud-review reviewer found no blocking issues. No Rust tests or test binaries were added. Full hosted Tier 2 remains required.

Windows workspace category links passed (5m29s). Windows hybrid libobs, all selected Rust fixtures and the new public C fixture linked successfully. Darwin initially failed solely on the new fixture's missing SIMDe include path; its complete corrected inventory and new fixture then passed. These are compile/link checks; native Windows/macOS execution and the full Linux Tier 2 suite were not run locally.

Final ./push client lint passed for all six targets on the published tree (19.6 seconds). client-checks could not find xmllint, so publication correctly retains ordinary required CI. Queue admission reopened on November 25; the unchanged published head is now ready for review. Ordinary required CI remains enabled.

Ci-Attestation: {"at":1795605459,"gate":"general/all/client-lint","host":"linux-x86_64","key":"74734def906983a2b64809ce767eef48d296820512e29d03982c0bef0ce99306","lane":"client-lint","parents":["3ced6a9aabdffa84f7724d68239ac924df4fc629"],"secs":20,"stamp":"27ad5eb5a16360dedab53d69aa5df272","tree":"68c658a7e66b747cbfe8c26d04f739f4cbb191a9","v":1,"via":"run"}
Ci-Attestation: {"at":1795605460,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"74734def906983a2b64809ce767eef48d296820512e29d03982c0bef0ce99306","lane":"client-lint","parents":["3ced6a9aabdffa84f7724d68239ac924df4fc629"],"secs":20,"stamp":"e3a3101cd623c29aa228f2f57056969a","tree":"68c658a7e66b747cbfe8c26d04f739f4cbb191a9","v":1,"via":"run"}
Ci-Attestation: {"at":1795605460,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"74734def906983a2b64809ce767eef48d296820512e29d03982c0bef0ce99306","lane":"client-lint","parents":["3ced6a9aabdffa84f7724d68239ac924df4fc629"],"secs":20,"stamp":"4f1586b83289487023e34cf1c5076daf","tree":"68c658a7e66b747cbfe8c26d04f739f4cbb191a9","v":1,"via":"run"}
Ci-Attestation: {"at":1795605460,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"74734def906983a2b64809ce767eef48d296820512e29d03982c0bef0ce99306","lane":"client-lint","parents":["3ced6a9aabdffa84f7724d68239ac924df4fc629"],"secs":20,"stamp":"aa37663cd30c2a72a6eace00c310e0ea","tree":"68c658a7e66b747cbfe8c26d04f739f4cbb191a9","v":1,"via":"run"}
Ci-Attestation: {"at":1795605460,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"74734def906983a2b64809ce767eef48d296820512e29d03982c0bef0ce99306","lane":"client-lint","parents":["3ced6a9aabdffa84f7724d68239ac924df4fc629"],"secs":20,"stamp":"fb8d98aceb7f6c8078a8d13b98e4dcb3","tree":"68c658a7e66b747cbfe8c26d04f739f4cbb191a9","v":1,"via":"run"}
Ci-Attestation: {"at":1795605459,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"74734def906983a2b64809ce767eef48d296820512e29d03982c0bef0ce99306","lane":"client-lint","parents":["3ced6a9aabdffa84f7724d68239ac924df4fc629"],"secs":20,"stamp":"6c65fd6a90837becc6cb4b5d386a9177","tree":"68c658a7e66b747cbfe8c26d04f739f4cbb191a9","v":1,"via":"run"}
Ci-Attestation: {"at":1795605459,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"74734def906983a2b64809ce767eef48d296820512e29d03982c0bef0ce99306","lane":"client-lint","parents":["3ced6a9aabdffa84f7724d68239ac924df4fc629"],"secs":20,"stamp":"21703d13913f18fa5489021d782c7140","tree":"68c658a7e66b747cbfe8c26d04f739f4cbb191a9","v":1,"via":"run"}
Ci-Attestation: {"at":1795605460,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"74734def906983a2b64809ce767eef48d296820512e29d03982c0bef0ce99306","lane":"client-lint","parents":["3ced6a9aabdffa84f7724d68239ac924df4fc629"],"secs":20,"stamp":"358ad4b3ba749a34e30128162894192c","tree":"68c658a7e66b747cbfe8c26d04f739f4cbb191a9","v":1,"via":"run"}
Ci-Attestation: {"at":1795605460,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"74734def906983a2b64809ce767eef48d296820512e29d03982c0bef0ce99306","lane":"client-lint","parents":["3ced6a9aabdffa84f7724d68239ac924df4fc629"],"secs":20,"stamp":"d843882352f5080f18b51c04fe711e63","tree":"68c658a7e66b747cbfe8c26d04f739f4cbb191a9","v":1,"via":"run"}
Ci-Attestation: {"at":1795605460,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"74734def906983a2b64809ce767eef48d296820512e29d03982c0bef0ce99306","lane":"client-lint","parents":["3ced6a9aabdffa84f7724d68239ac924df4fc629"],"secs":20,"stamp":"f50373a75afa613d690350b91ee897af","tree":"68c658a7e66b747cbfe8c26d04f739f4cbb191a9","v":1,"via":"run"}
Ci-Attestation: {"at":1795605460,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"74734def906983a2b64809ce767eef48d296820512e29d03982c0bef0ce99306","lane":"client-lint","parents":["3ced6a9aabdffa84f7724d68239ac924df4fc629"],"secs":20,"stamp":"36e4baa4b52bbf31972f0b846474d546","tree":"68c658a7e66b747cbfe8c26d04f739f4cbb191a9","v":1,"via":"run"}
Ci-Attestation: {"at":1795605459,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"74734def906983a2b64809ce767eef48d296820512e29d03982c0bef0ce99306","lane":"client-lint","parents":["3ced6a9aabdffa84f7724d68239ac924df4fc629"],"secs":20,"stamp":"29532f53f6fe09a6434ead31d06057db","tree":"68c658a7e66b747cbfe8c26d04f739f4cbb191a9","v":1,"via":"run"}
Ci-Attestation: {"at":1795605459,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"74734def906983a2b64809ce767eef48d296820512e29d03982c0bef0ce99306","lane":"client-lint","parents":["3ced6a9aabdffa84f7724d68239ac924df4fc629"],"secs":20,"stamp":"56eee8f0084231fbfb057ee9a1b7c567","tree":"68c658a7e66b747cbfe8c26d04f739f4cbb191a9","v":1,"via":"run"}
@zackees zackees changed the title test(libobs): declare frame fixture SIMD header dependency (Refs #5619) libobs: characterize and extract source frame initialization (Refs #5619) Nov 25, 2026
@zackees
zackees marked this pull request as ready for review November 25, 2026 11:34
@zackees
zackees enabled auto-merge November 25, 2026 11:35
@zackees
zackees added this pull request to the merge queue Nov 25, 2026
Merged via the queue into master with commit 8a19542 Nov 25, 2026
49 checks passed
@zackees
zackees deleted the test/5619-source-frame-init branch November 25, 2026 13:32
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.

1 participant