VideoEncoderSettings


@UnstableApi
public final class VideoEncoderSettings


Represents the video encoder settings.

Summary

Nested types

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

The allowed values for bitrateMode.

public final class VideoEncoderSettings.Builder

Builds VideoEncoderSettings instances.

Constants

static final VideoEncoderSettings

A default VideoEncoderSettings.

static final float

The default I-frame interval in seconds.

static final int

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

static final int

A value for setEncoderPerformanceParameters to disable setting performance parameters.

Public fields

final int

The encoding bitrate in bits per second.

final int

One of BitrateMode.

final boolean

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

final float

The encoding I-Frame interval in seconds.

final int

The encoding level.

final int

The encoder operating rate in frames per second.

final int

The encoder priority.

final int

The encoding profile.

Public methods

VideoEncoderSettings.Builder

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

boolean
int

Constants

DEFAULT

public static final VideoEncoderSettings DEFAULT

A default VideoEncoderSettings.

DEFAULT_I_FRAME_INTERVAL_SECONDS

public static final float DEFAULT_I_FRAME_INTERVAL_SECONDS = 1.0f

The default I-frame interval in seconds.

NO_VALUE

public static final int NO_VALUE = -1

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

RATE_UNSET

public static final int RATE_UNSET = -2

A value for setEncoderPerformanceParameters to disable setting performance parameters.

Public fields

bitrate

public final int bitrate

The encoding bitrate in bits per second.

bitrateMode

@VideoEncoderSettings.BitrateMode
public final int bitrateMode

One of BitrateMode.

enableHighQualityTargeting

public final boolean enableHighQualityTargeting

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

iFrameIntervalSeconds

public final float iFrameIntervalSeconds

The encoding I-Frame interval in seconds.

level

public final int level

The encoding level.

operatingRate

public final int operatingRate

The encoder operating rate in frames per second.

priority

public final int priority

The encoder priority.

profile

public final int profile

The encoding profile.

Public methods

buildUpon

public VideoEncoderSettings.Builder buildUpon()

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

equals

public boolean equals(@Nullable Object o)

hashCode

public int hashCode()