mirror of
https://github.com/cottongin/cardputerzero-camera.git
synced 2026-11-21 06:44:47 -06:00
feat(cam-helper): add decoupled czcamera-cam picamera2 worker and CZFR/JSON protocol
This commit is contained in:
35
cam-helper/czcamera_cam/__init__.py
Normal file
35
cam-helper/czcamera_cam/__init__.py
Normal file
@@ -0,0 +1,35 @@
|
||||
"""Decoupled camera helper worker and wire protocol for czcamera."""
|
||||
|
||||
from .picam2_worker import (
|
||||
MockCameraDriver,
|
||||
Picam2Worker,
|
||||
compute_scaler_crop,
|
||||
resolve_transform,
|
||||
)
|
||||
from .protocol import (
|
||||
CZFR_HEADER_STRUCT,
|
||||
CZFR_MAGIC,
|
||||
FLAG_ASPECT_16_9,
|
||||
PIXFMT_RGB24,
|
||||
PIXFMT_YUV420,
|
||||
PROTOCOL_VERSION,
|
||||
FramePipeWriter,
|
||||
JsonProtocolServer,
|
||||
pack_czfr_header,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"CZFR_HEADER_STRUCT",
|
||||
"CZFR_MAGIC",
|
||||
"FLAG_ASPECT_16_9",
|
||||
"FramePipeWriter",
|
||||
"JsonProtocolServer",
|
||||
"MockCameraDriver",
|
||||
"PIXFMT_RGB24",
|
||||
"PIXFMT_YUV420",
|
||||
"PROTOCOL_VERSION",
|
||||
"Picam2Worker",
|
||||
"compute_scaler_crop",
|
||||
"pack_czfr_header",
|
||||
"resolve_transform",
|
||||
]
|
||||
Reference in New Issue
Block a user