VideoStreamInfo¶
The VideoStreamInfo class describes an elementary video stream.
The media type is always MediaType.Video and cannot be changed.
Class¶
- class avblocks.VideoStreamInfo¶
Bases:
StreamInfoDescribes an elementary video stream.
The media type is always MediaType.Video and cannot be changed.
- clone() VideoStreamInfo¶
Creates a deep copy of this object.
- Returns:
A new VideoStreamInfo object
- property color_format: ColorFormat¶
The video color format.
- property display_ratio_height: int¶
The vertical dimension of the display aspect ratio.
- property display_ratio_width: int¶
The horizontal dimension of the display aspect ratio.
- property frame_bottom_up: bool¶
Specifies whether the video frame is stored upside down internally.
When True the frame is stored upside down (vertically flipped) but logically it should be displayed normally. This is typical for bitmaps.
When False the frame is displayed as it is stored - top row is first in memory, bottom row is last.
- property frame_height: int¶
The video frame height.
- property frame_rate: float¶
The video frame rate.
- property frame_width: int¶
The video frame width.
- reset()¶
Resets the video stream information to its default state.