VideoEncoderSettings
@UnstableApi
public final class VideoEncoderSettings
Represents the video encoder settings.
Summary
Nested types |
|---|
@DocumentedThe allowed values for |
public final class VideoEncoderSettings.BuilderBuilds |
Constants |
|
|---|---|
static final VideoEncoderSettings |
A default |
static final float |
The default I-frame interval in seconds. |
static final int |
NO_VALUE = -1A value for various fields to indicate that the field's value is unknown or not applicable. |
static final int |
RATE_UNSET = -2A value for |
Public fields |
|
|---|---|
final int |
The encoding bitrate in bits per second. |
final int |
One of |
final float |
The encoding I-Frame interval in seconds. |
final int |
The encoding level. |
final int |
The |
final int |
The requested number of bidirectional temporal layers requested from the encoder. |
final int |
The requested number of non-bidirectional temporal layers requested from the encoder. |
final int |
The encoder |
final int |
The encoder |
final int |
The encoding profile. |
final long |
The |
Public methods |
|
|---|---|
VideoEncoderSettings.Builder |
Returns a |
boolean |
|
int |
hashCode() |
String |
toString() |
Constants
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
iFrameIntervalSeconds
public final float iFrameIntervalSeconds
The encoding I-Frame interval in seconds.
maxBFrames
public final int maxBFrames
The maximum number of B frames allowed between I and P frames in the produced encoded video.
numBidirectionalTemporalLayers
public final int numBidirectionalTemporalLayers
The requested number of bidirectional temporal layers requested from the encoder.
numNonBidirectionalTemporalLayers
public final int numNonBidirectionalTemporalLayers
The requested number of non-bidirectional temporal layers requested from the encoder.
repeatPreviousFrameIntervalUs
public final long repeatPreviousFrameIntervalUs
The frame repeat interval, in microseconds.
Public methods
buildUpon
public VideoEncoderSettings.Builder buildUpon()
Returns a VideoEncoderSettings.Builder initialized with the values of this instance.