| 1 |
class VideoFormat: |
| 2 |
name: str |
| 3 |
bits_per_pixel: int |
| 4 |
padded_bits_per_pixel: int |
| 5 |
is_big_endian: bool |
| 6 |
has_palette: bool |
| 7 |
is_bit_stream: bool |
| 8 |
is_planar: bool |
| 9 |
width: int |
| 10 |
height: int |
| 11 |
@property |
| 12 |
def components(self) -> tuple[VideoFormatComponent, ...]: ... |
| 13 |
@property |
| 14 |
def is_rgb(self) -> bool: ... |
| 15 |
@property |
| 16 |
def is_bayer(self) -> bool: ... |
| 17 |
def __init__(self, name: str, width: int = 0, height: int = 0) -> None: ... |
| 18 |
def chroma_width(self, luma_width: int = 0) -> int: ... |
| 19 |
def chroma_height(self, luma_height: int = 0) -> int: ... |
| 20 |
|
| 21 |
class VideoFormatComponent: |
| 22 |
plane: int |
| 23 |
bits: int |
| 24 |
is_alpha: bool |
| 25 |
is_luma: bool |
| 26 |
is_chroma: bool |
| 27 |
width: int |
| 28 |
height: int |
| 29 |
|
| 30 |
def __init__(self, format: VideoFormat, index: int) -> None: ... |