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>
This commit is contained in:
Tomi Valkeinen 2022-05-30 17:27:12 +03:00 committed by Laurent Pinchart
parent 80e0ff355e
commit e8317de05c
2 changed files with 10 additions and 6 deletions

View file

@ -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: