Skip to content

rust: Port the GPU encode gates in obs-video-gpu-encode.c to Rust #2476

Closed

Description

@rdoupe

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.

Plan

The standard six commits:

  1. move;
  2. characterization test;
  3. Tier 1 RED;
  4. GREEN in a libobs.ported-* group;
  5. Tier 3 parity;
  6. docs.

Posted after #2475 (same file group).

Activity

  1. added
    ready
    on Oct 26, 2026
  2. rdoupe commented on Oct 26, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: #2476 (round 9 unit 7, GPU encode gates; posts after #2475).

  3. moved this from In progress to Done in obs-rust Multiviewon Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions