Header menu logo fable-electron-docs-api

TextureInfo Type

Constructors

Constructor Description

TextureInfo(widgetType, pixelFormat, codedSize, colorSpace, visibleRect, contentRect, timestamp, metadata, handle)

Full Usage: TextureInfo(widgetType, pixelFormat, codedSize, colorSpace, visibleRect, contentRect, timestamp, metadata, handle)

Parameters:
    widgetType : 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
widgetType : 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

this.codedSize

Full Usage: this.codedSize

The full dimensions of the video frame.

this.colorSpace

Full Usage: this.colorSpace

The color space of the video frame.

this.contentRect

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.

this.handle

Full Usage: this.handle

The shared texture handle data.

this.metadata

Full Usage: this.metadata

Extra metadata. See comments in src\media\base\video_frame_metadata.h for accurate details.

this.pixelFormat

Full Usage: this.pixelFormat

The pixel format of the texture.

this.timestamp

Full Usage: this.timestamp

The time in microseconds since the capture start.

this.visibleRect

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.

this.widgetType

Full Usage: this.widgetType

The widget type of the texture. Can be popup or frame.

Type something to start searching.