three.MF.V3.Settings.Video
1from enum import Enum 2 3 4class Video: 5 6 """ 7 Video settings. 8 """ 9 class Codec(Enum): 10 11 """ 12 Video codecs. 13 """ 14 NoCodec = "NoCodec" # No codec specified. 15 RAW = "RAW" # Raw encoding. 16 JPEG = "JPEG" # JPEG encoding. 17 H264 = "H264" # H264 encoding. 18 19 class Format(Enum): 20 21 """ 22 Pixel formats. 23 """ 24 NoFormat = "NoFormat" # No format specified. 25 RGB565 = "RGB565" # RGB565 16-bit 26 RGB888 = "RGB888" # RGB888 24-bit. 27 BGR888 = "BGR888" # BGR888 24-bit. 28 YUV420 = "YUV420" # YUV 420 planar. 29 30 def __init__(self, codec: 'Codec', format: 'Format', width: int, height: int): 31 # Video codec. 32 self.codec = codec 33 # Pixel format. 34 self.format = format 35 # Image width. 36 self.width = width 37 # Image height. 38 self.height = height
class
Video:
5class Video: 6 7 """ 8 Video settings. 9 """ 10 class Codec(Enum): 11 12 """ 13 Video codecs. 14 """ 15 NoCodec = "NoCodec" # No codec specified. 16 RAW = "RAW" # Raw encoding. 17 JPEG = "JPEG" # JPEG encoding. 18 H264 = "H264" # H264 encoding. 19 20 class Format(Enum): 21 22 """ 23 Pixel formats. 24 """ 25 NoFormat = "NoFormat" # No format specified. 26 RGB565 = "RGB565" # RGB565 16-bit 27 RGB888 = "RGB888" # RGB888 24-bit. 28 BGR888 = "BGR888" # BGR888 24-bit. 29 YUV420 = "YUV420" # YUV 420 planar. 30 31 def __init__(self, codec: 'Codec', format: 'Format', width: int, height: int): 32 # Video codec. 33 self.codec = codec 34 # Pixel format. 35 self.format = format 36 # Image width. 37 self.width = width 38 # Image height. 39 self.height = height
Video settings.
Video( codec: Video.Codec, format: Video.Format, width: int, height: int)
class
Video.Codec(enum.Enum):
10 class Codec(Enum): 11 12 """ 13 Video codecs. 14 """ 15 NoCodec = "NoCodec" # No codec specified. 16 RAW = "RAW" # Raw encoding. 17 JPEG = "JPEG" # JPEG encoding. 18 H264 = "H264" # H264 encoding.
Video codecs.
class
Video.Format(enum.Enum):
20 class Format(Enum): 21 22 """ 23 Pixel formats. 24 """ 25 NoFormat = "NoFormat" # No format specified. 26 RGB565 = "RGB565" # RGB565 16-bit 27 RGB888 = "RGB888" # RGB888 24-bit. 28 BGR888 = "BGR888" # BGR888 24-bit. 29 YUV420 = "YUV420" # YUV 420 planar.
Pixel formats.