feat(python/display): display set に解像度プリセット / WxH@FPS 記法を追加#67
Merged
Conversation
display set に optional positional spec を追加。hd/fhd/qhd/uhd プリセットと 1280x720@60 記法 (@fps は optional) を 1 引数で受け、-W/-H/-F は spec を field 単位で override する。proto / DisplayClient は不変で、CLI 層のパースのみ。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…lay-resolution-presets
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.
Summary
resoio display setに optional positionalspecを追加。hd/fhd/qhd/uhdプリセット (case-insensitive) とWIDTHxHEIGHT[@FPS]記法 (@FPSは optional) を 1 引数で受ける。hd1280×720 /fhd1920×1080 /qhd2560×1440 /uhd3840×2160resoio display set fhd/set qhd@144/set 1280x720@60-W/--width/-H/--height/-F/--max-fpsは spec を field 単位で override する (フラグが常に勝つ)。spec の@FPSと-Fが両方あれば-Fが勝つ。DisplayClientは不変 — CLI 層の_parse_specでパースし、既存のapply(width, height, max_fps)にそのまま流すだけ。docs/cli.md(display 行 + Examples) とCHANGELOG.md(Unreleased / Added) を更新。Test plan
just rungreen (Python 982 / C# 15 + 387 passed, pyright 0 errors, renderer-prebuilt OK)just docs-build(--strict) 通過_parse_specの単体テスト (プリセット / WxH / @fps / 大文字 / 不正形式の拒否) + behavior + override テストを追加resoio display set fhd@30→resoio display getで 1920×1080 / max_fps=30 を確認🤖 Generated with Claude Code