[perf] adapt CLI preview rate and improve frame pacing

This commit is contained in:
dijunkun
2026-10-31 00:36:27 +08:00
parent 5f2caee0cb
commit d687c0e2ea
4 changed files with 133 additions and 16 deletions
@@ -68,6 +68,8 @@ public:
std::optional<DecodedFrame> TakeFrame(DecodedFrame *recycle = nullptr);
nlohmann::json Status() const;
bool Connected() const { return state_ == "connected"; }
bool PreviewAccepted() const { return preview_accepted_; }
bool SupportsPreviewFps15() const { return fps15_; }
bool Finished() const { return state_ == "failed" || state_ == "closed"; }
uint64_t Generation() const { return generation_; }