FrameInfo.Builder


class FrameInfo.Builder


A builder for FrameInfo instances.

Summary

Public constructors

Builder(frameInfo: FrameInfo!)

Creates an instance with the values of the provided FrameInfo.

Builder(colorInfo: ColorInfo!, width: Int, height: Int)

Creates an instance with default values.

Public functions

FrameInfo!

Builds a FrameInfo instance.

FrameInfo.Builder!

Sets the ColorInfo.

FrameInfo.Builder!

Sets the frame height, in pixels.

FrameInfo.Builder!

Sets the offset to add to the frame presentation timestamp, in microseconds.

FrameInfo.Builder!

Sets the ratio of width over height for each pixel.

FrameInfo.Builder!

Sets the frame width, in pixels.

Public constructors

Builder

Builder(frameInfo: FrameInfo!)

Creates an instance with the values of the provided FrameInfo.

Builder

Builder(colorInfo: ColorInfo!, width: Int, height: Int)

Creates an instance with default values.

Parameters
colorInfo: ColorInfo!

The ColorInfo.

width: Int

The frame width, in pixels.

height: Int

The frame height, in pixels.

Public functions

build

fun build(): FrameInfo!

Builds a FrameInfo instance.

setColorInfo

@CanIgnoreReturnValue
fun setColorInfo(colorInfo: ColorInfo!): FrameInfo.Builder!

Sets the ColorInfo.

setHeight

@CanIgnoreReturnValue
fun setHeight(height: Int): FrameInfo.Builder!

Sets the frame height, in pixels.

setOffsetToAddUs

@CanIgnoreReturnValue
fun setOffsetToAddUs(offsetToAddUs: Long): FrameInfo.Builder!

Sets the offset to add to the frame presentation timestamp, in microseconds.

The default value is 0.

setPixelWidthHeightRatio

@CanIgnoreReturnValue
fun setPixelWidthHeightRatio(pixelWidthHeightRatio: Float): FrameInfo.Builder!

Sets the ratio of width over height for each pixel.

The default value is 1.

setWidth

@CanIgnoreReturnValue
fun setWidth(width: Int): FrameInfo.Builder!

Sets the frame width, in pixels.