mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-11-03 04:22:43 +08:00
[perf] adapt CLI preview rate and improve frame pacing
This commit is contained in:
@@ -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_; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user