Skip to content

frontend: translate legacy macOS encoder ids through the platform facade (#883) - #1977

Merged
zackees merged 2 commits into
masterfrom
infra/883-encoder-id
Oct 23, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/883-encoder-id

Conversation

@zackees

@zackees zackees commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Refs #883 (step 3 of 5: the last 2 conditionals in AdvancedOutput.cpp.hpp).

AdvancedOutput::AdvancedOutput renamed old vt_h264_hw/vt_h264_sw profile ids to the VideoToolbox ids with a static helper under __APPLE__. It now calls TranslateLegacyEncoderId(streamEncoder) / (recordEncoder) from platform.hpp. platform-osx.mm.hpp has the same body, moved unchanged; Windows and X11 leave the id alone, as before.

  • RED 037cb5f: test_legacy_encoder_ids_are_translated_by_the_host. Locally: FAILED (failures=1).
  • GREEN 9551ea0: test OK. Ratchet: AdvancedOutput.cpp.hpp drops out of the baseline. ./lint: ok. The macOS file selects the macOS lane.

Tiers 1-4 don't apply. Not user-visible.

)

RED: AdvancedOutput.cpp.hpp still renames vt_h264_hw/sw under __APPLE__.
…ade (#883)

AdvancedOutput calls TranslateLegacyEncoderId() (platform.hpp) for its
stream and record encoders; platform-osx renames vt_h264_hw/sw to the
VideoToolbox ids as before, the Windows and X11 hosts leave the id alone.
AdvancedOutput.cpp.hpp has no host conditional left.
@zackees
zackees removed this pull request from the merge queue due to a manual request Oct 23, 2026
@zackees
zackees force-pushed the infra/883-encoder-id branch from 8057860 to 9551ea0 Compare October 23, 2026 21:23
@zackees
zackees enabled auto-merge October 23, 2026 21:23
@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit 3bd089d Oct 23, 2026
30 checks passed
@zackees
zackees deleted the infra/883-encoder-id branch October 26, 2026 15:45
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