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
rust: Port the GPU encode gates in obs-video-gpu-encode.c to Rust #2476
Rust port, round 9 unit 7: the per-encoder gates of the GPU encode thread in libobs/obs-video-gpu-encode.c.h, moved to Rust next to the raw-encode checks it reuses (#2331).
Scope
Rust takes over these decisions in gpu_encode_thread:
the start-up wait (wait_frames);
per encoder: skip a failed encoder, the group start gate, the paired-audio wait, the frame-rate divisor counter, the start timestamp, the lock key step, encode_texture2 or encode_texture, whether the timing entry is recorded, and the pts step;
the requeue after the walk: back to the front with timestamp + interval, or to the available queue;
and in init_gpu_encoding: P010 or NV12 textures by the video format.
C keeps the semaphore, the stop and inactive flags, the encoder mutex, the deques, every ref and release, the weak paired-encoder walk, the group mutex, the pause check, the group reconfigure request, info.update, both encode calls, os_gettime_ns, sending the packet, the profiler, the texture creates and the thread stop and free.
Activity
rdoupe commentedon Oct 26, 2026
Claiming: #2476 (round 9 unit 7, GPU encode gates; posts after #2475).
obs-output: Port the GPU encode thread gates (obs-rust#2481)