TextureInfo Type
Constructors
| Constructor |
Description
|
Full Usage:
TextureInfo(widgetType, pixelFormat, codedSize, colorSpace, visibleRect, contentRect, timestamp, metadata, handle)
Parameters:
WidgetType
-
The widget type of the texture. Can be popup or frame.
pixelFormat : PixelFormat
-
The pixel format of the texture.
codedSize : Size
-
The full dimensions of the video frame.
colorSpace : ColorSpace
-
The color space of the video frame.
visibleRect : Rectangle
-
A subsection of [0, 0, codedSize.width, codedSize.height]. In OSR case, it is expected to have the full section area.
contentRect : Rectangle
-
The region of the video frame that capturer would like to populate. In OSR case, it is the same
with dirtyRect that needs to be painted.
timestamp : float
-
The time in microseconds since the capture start.
metadata : Metadata
-
Extra metadata. See comments in src\media\base\video_frame_metadata.h for accurate details.
handle : SharedTextureHandle
-
The shared texture handle data.
Returns: TextureInfo
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.codedSize
|
The full dimensions of the video frame. |
Full Usage:
this.colorSpace
|
The color space of the video frame. |
Full Usage:
this.contentRect
|
The region of the video frame that capturer would like to populate. In OSR case, it is the same with dirtyRect that needs to be painted. |
Full Usage:
this.handle
|
The shared texture handle data. |
Full Usage:
this.metadata
|
Extra metadata. See comments in src\media\base\video_frame_metadata.h for accurate details. |
Full Usage:
this.pixelFormat
|
The pixel format of the texture. |
Full Usage:
this.timestamp
|
The time in microseconds since the capture start. |
Full Usage:
this.visibleRect
|
A subsection of [0, 0, codedSize.width, codedSize.height]. In OSR case, it is expected to have the full section area. |
Full Usage:
this.widgetType
|
The widget type of the texture. Can be popup or frame. |
fable-electron-docs-api