matrice-streaming 0.1.60__py3-none-any.whl → 0.1.61__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- matrice_streaming/streaming_gateway/camera_streamer/__init__.py +26 -2
- matrice_streaming/streaming_gateway/camera_streamer/nvdec.py +961 -0
- matrice_streaming/streaming_gateway/camera_streamer/nvdec_worker_manager.py +380 -0
- matrice_streaming/streaming_gateway/streaming_gateway.py +182 -11
- {matrice_streaming-0.1.60.dist-info → matrice_streaming-0.1.61.dist-info}/METADATA +1 -1
- {matrice_streaming-0.1.60.dist-info → matrice_streaming-0.1.61.dist-info}/RECORD +9 -7
- {matrice_streaming-0.1.60.dist-info → matrice_streaming-0.1.61.dist-info}/WHEEL +0 -0
- {matrice_streaming-0.1.60.dist-info → matrice_streaming-0.1.61.dist-info}/licenses/LICENSE.txt +0 -0
- {matrice_streaming-0.1.60.dist-info → matrice_streaming-0.1.61.dist-info}/top_level.txt +0 -0
|
@@ -26,14 +26,33 @@ except (ImportError, ValueError):
|
|
|
26
26
|
GStreamerPipeline = None
|
|
27
27
|
GStreamerAsyncWorker = None
|
|
28
28
|
GStreamerWorkerManager = None
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
def is_gstreamer_available():
|
|
31
31
|
return False
|
|
32
32
|
|
|
33
|
+
# NVDEC components (optional - graceful import)
|
|
34
|
+
try:
|
|
35
|
+
from .nvdec_worker_manager import (
|
|
36
|
+
NVDECWorkerManager,
|
|
37
|
+
is_nvdec_available,
|
|
38
|
+
get_available_gpu_count,
|
|
39
|
+
)
|
|
40
|
+
NVDEC_AVAILABLE = is_nvdec_available()
|
|
41
|
+
except ImportError:
|
|
42
|
+
# NVDEC not available (requires CuPy, PyNvVideoCodec)
|
|
43
|
+
NVDEC_AVAILABLE = False
|
|
44
|
+
NVDECWorkerManager = None
|
|
45
|
+
|
|
46
|
+
def is_nvdec_available():
|
|
47
|
+
return False
|
|
48
|
+
|
|
49
|
+
def get_available_gpu_count():
|
|
50
|
+
return 1
|
|
51
|
+
|
|
33
52
|
__all__ = [
|
|
34
53
|
# Original components
|
|
35
54
|
"CameraStreamer",
|
|
36
|
-
"WorkerManager",
|
|
55
|
+
"WorkerManager",
|
|
37
56
|
"AsyncCameraWorker",
|
|
38
57
|
# GStreamer components
|
|
39
58
|
"GStreamerCameraStreamer",
|
|
@@ -43,4 +62,9 @@ __all__ = [
|
|
|
43
62
|
"GStreamerWorkerManager",
|
|
44
63
|
"is_gstreamer_available",
|
|
45
64
|
"GSTREAMER_AVAILABLE",
|
|
65
|
+
# NVDEC components
|
|
66
|
+
"NVDECWorkerManager",
|
|
67
|
+
"is_nvdec_available",
|
|
68
|
+
"get_available_gpu_count",
|
|
69
|
+
"NVDEC_AVAILABLE",
|
|
46
70
|
]
|