Skip to content

Commit b50a624

Browse files
committed
Revert "video: Change meta format class name"
1 parent f5efbca commit b50a624

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

linuxpy/video/device.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def human_pixel_format(ifmt):
9595

9696
ImageFormat = 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

100100
Format = 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,

0 commit comments

Comments
 (0)