diff options
author | Maxim Devaev <[email protected]> | 2024-12-18 06:39:18 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-12-18 06:39:18 +0200 |
commit | af2ee26a2f022bff01ca446814a35c4aea14d5ca (patch) | |
tree | 8826291c60ea78935a113f5f2a17f11a288e6ab1 /kvmd/clients | |
parent | 596334735e1e7a0ebd685ff7df2a8dbd776763f0 (diff) |
kvmd-media server
Diffstat (limited to 'kvmd/clients')
-rw-r--r-- | kvmd/clients/streamer.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmd/clients/streamer.py b/kvmd/clients/streamer.py index 5369892e..cd5f03ec 100644 --- a/kvmd/clients/streamer.py +++ b/kvmd/clients/streamer.py @@ -63,6 +63,10 @@ class StreamerFormats: H264 = 875967048 # V4L2_PIX_FMT_H264 _MJPEG = 1196444237 # V4L2_PIX_FMT_MJPEG + @classmethod + def is_diff(cls, fmt: int) -> bool: + return (fmt == cls.H264) + class BaseStreamerClient: def get_format(self) -> int: |