Repository navigation
libobs: characterize and extract source frame initialization (Refs #5619) - #5634
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 25, 2026 11:34
zackees
enabled auto-merge
November 25, 2026 11:35
This was referenced Nov 25, 2026
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.
Refs #5619.
obs_source_frame_initis still inline inobs-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 intoobs-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::SIMDewithout 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 ./lintpassed 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
./pushclient lint passed for all six targets on the published tree (19.6 seconds).client-checkscould not findxmllint, 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.