VideoEncoderSettings


@UnstableApi
class VideoEncoderSettings


Represents the video encoder settings.

Summary

Nested types

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
annotation VideoEncoderSettings.BitrateMode

The allowed values for bitrateMode.

Builds VideoEncoderSettings instances.

Constants

const VideoEncoderSettings!

A default VideoEncoderSettings.

const Float

The default I-frame interval in seconds.

const Int

A value for various fields to indicate that the field's value is unknown or not applicable.

Public functions

VideoEncoderSettings.Builder!

Returns a VideoEncoderSettings.Builder initialized with the values of this instance.

Boolean
equals(o: Any?)
Int

Public properties

Int

The encoding bitrate in bits per second.

Int

One of BitrateMode.

Boolean

Whether the encoder should automatically set the bitrate to target a high quality encoding.

Float

The encoding I-Frame interval in seconds.

Int

The encoding level.

Int

The encoder operating rate in frames per second.

Int

The encoder priority.

Int

The encoding profile.

Constants

DEFAULT

const val DEFAULTVideoEncoderSettings!

A default VideoEncoderSettings.

DEFAULT_I_FRAME_INTERVAL_SECONDS

const val DEFAULT_I_FRAME_INTERVAL_SECONDS = 1.0f: Float

The default I-frame interval in seconds.

NO_VALUE

const val NO_VALUE = -1: Int

A value for various fields to indicate that the field's value is unknown or not applicable.

Public functions

buildUpon

fun buildUpon(): VideoEncoderSettings.Builder!

Returns a VideoEncoderSettings.Builder initialized with the values of this instance.

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

bitrate

val bitrateInt

The encoding bitrate in bits per second.

enableHighQualityTargeting

val enableHighQualityTargetingBoolean

Whether the encoder should automatically set the bitrate to target a high quality encoding.

iFrameIntervalSeconds

val iFrameIntervalSecondsFloat

The encoding I-Frame interval in seconds.

level

val levelInt

The encoding level.

operatingRate

val operatingRateInt

The encoder operating rate in frames per second.

priority

val priorityInt

The encoder priority.

profile

val profileInt

The encoding profile.