Skip to content

rust: Port the output encoder slot gates in obs-output.c to obs-output #2467

Closed

Description

@rdoupe

Rust port, round 9 unit 2: the output encoder slots and setter gates in libobs/obs-output.c.h, moved to obs-output.

Scope

Rust takes over these decisions:

  • get_first_audio_encoder_index / get_first_video_encoder_index: the first occupied slot, from an occupancy mask C passes;
  • obs_output_audio: the raw output's own audio, or the first audio encoder's;
  • obs_output_set_mixer / obs_output_set_mixers: the encoded, index and active gates;
  • obs_output_remove_encoder_internal / obs_output_remove_encoder: which slots hold the encoder (by type), and the active gate;
  • obs_output_set_video_encoder2 / obs_output_set_audio_encoder: the flag and type gates, the active refusal, the index rule, the same-encoder shortcut, whether a caption track is created, and the preferred-size step for index 0;
  • the index bounds of obs_output_get_video_encoder2, obs_output_get_video_encoder and obs_output_get_audio_encoder;
  • obs_output_set_service: the service gate;
  • obs_output_set_preferred_size2: the video flag, index and active gates, the raw size write, and the encoder step.

C keeps the log_flag_* checks (in the same order), active() loaded where it is today, every encoder ref and release, add and remove output, the caption track create and destroy, obs_encoder_set_scaled_size, obs_encoder_audio, the service pointer swap and the logs.

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.

Activity

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

    @rdoupe
    CollaboratorAuthor

    Claiming: #2467 (round 9 unit 2, output encoder slot gates).

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