summaryrefslogtreecommitdiff
path: root/src/py/cam
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2022-05-30 17:27:12 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-06-01 12:08:58 +0300
commite8317de05ce62e5e7ccdef3d18a76ecd590e9ef6 (patch)
treed7fd33ddde5ed4db9fe3a0a8161e04818f059502 /src/py/cam
parent80e0ff355ee64cd50940b1e94d6e43c5f19afdfa (diff)
py: Add FrameMetadataPlane
Add FrameMetadataPlane class and adjust the methods and uses accordingly. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/py/cam')
-rwxr-xr-xsrc/py/cam/cam.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/py/cam/cam.py b/src/py/cam/cam.py
index 677dd680..bf8529d9 100755
--- a/src/py/cam/cam.py
+++ b/src/py/cam/cam.py
@@ -285,7 +285,8 @@ class CaptureState:
print('{:.6f} ({:.2f} fps) {}-{}: seq {}, bytes {}, CRCs {}'
.format(ts / 1000000000, fps,
ctx.id, stream_name,
- meta.sequence, meta.bytesused,
+ meta.sequence,
+ '/'.join([str(p.bytes_used) for p in meta.planes]),
crcs))
if ctx.opt_metadata: