File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def human_pixel_format(ifmt):
9595
9696ImageFormat = collections .namedtuple ("ImageFormat" , "type description flags pixel_format" )
9797
98- MetaFormat = collections .namedtuple ("MetaFormat " , "format max_buffer_size width height bytes_per_line" )
98+ MetaFmt = collections .namedtuple ("MetaFmt " , "format max_buffer_size width height bytes_per_line" )
9999
100100Format = collections .namedtuple ("Format" , "width height pixel_format size" )
101101
@@ -475,10 +475,10 @@ def get_raw_format(fd, buffer_type) -> raw.v4l2_format:
475475 return fmt
476476
477477
478- def get_format (fd , buffer_type ) -> Union [Format , MetaFormat ]:
478+ def get_format (fd , buffer_type ) -> Union [Format , MetaFmt ]:
479479 f = get_raw_format (fd , buffer_type )
480480 if buffer_type in {BufferType .META_CAPTURE , BufferType .META_OUTPUT }:
481- return MetaFormat (
481+ return MetaFmt (
482482 format = MetaFormat (f .fmt .meta .dataformat ),
483483 max_buffer_size = f .fmt .meta .buffersize ,
484484 width = f .fmt .meta .width ,
You can’t perform that action at this time.
0 commit comments