public class VideoEncoderConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
bitrate
Video encoding target bitrate (Kbps).
|
private int |
codecType
The video encoder code type: #VIDEO_CODEC_TYPE.
|
private int |
degradationPreference
The video degradation preference when the bandwidth is a constraint:
#DEGRADATION_PREFERENCE.
|
private VideoDimensions |
dimensions
The video frame dimension used to specify the video quality and measured
by the total number of pixels along a frame's width and height:
VideoDimensions.
|
private int |
encodeAlpha
Whether to encode and send the alpha data to the remote when alpha data is
present.
|
private int |
frameRate
Frame rate of the video: int type, but can accept #FRAME_RATE for backward
compatibility.
|
private int |
minBitrate
(For future use) The minimum encoding bitrate (Kbps).
|
private int |
mirrorMode
If mirror_type is set to VIDEO_MIRROR_MODE_ENABLED, then the video frame
would be mirrored before encoding.
|
private int |
orientationMode
(For future use) The video orientation mode of the video: #ORIENTATION_MODE.
|
| Constructor and Description |
|---|
VideoEncoderConfig()
Default constructor for VideoEncoderConfig.
|
VideoEncoderConfig(int codecType,
VideoDimensions dimensions,
int frameRate,
int bitrate,
int minBitrate,
int orientationMode,
int degradationPreference,
int mirrorMode,
int encodeAlpha)
Constructs VideoEncoderConfig with all parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBitrate()
Gets the video encoding target bitrate (Kbps).
|
int |
getCodecType()
Gets the video encoder codec type.
|
int |
getDegradationPreference()
Gets the video degradation preference.
|
VideoDimensions |
getDimensions()
Gets the video dimensions.
|
int |
getEncodeAlpha()
Gets whether to encode alpha data.
|
int |
getFrameRate()
Gets the frame rate.
|
int |
getMinBitrate()
Gets the minimum encoding bitrate (Kbps).
|
int |
getMirrorMode()
Gets the mirror mode.
|
int |
getOrientationMode()
Gets the video orientation mode.
|
void |
setBitrate(int bitrate)
Sets the video encoding target bitrate (Kbps).
|
void |
setCodecType(int codecType)
Sets the video encoder codec type.
|
void |
setDegradationPreference(int degradationPreference)
Sets the video degradation preference.
|
void |
setDimensions(VideoDimensions dimensions)
Sets the video dimensions.
|
void |
setEncodeAlpha(int encodeAlpha)
Sets whether to encode alpha data.
|
void |
setFrameRate(int frameRate)
Sets the frame rate.
|
void |
setMinBitrate(int minBitrate)
Sets the minimum encoding bitrate (Kbps).
|
void |
setMirrorMode(int mirrorMode)
Sets the mirror mode.
|
void |
setOrientationMode(int orientationMode)
Sets the video orientation mode.
|
java.lang.String |
toString() |
private int codecType
private VideoDimensions dimensions
private int frameRate
private int bitrate
private int minBitrate
private int orientationMode
private int degradationPreference
private int mirrorMode
private int encodeAlpha
public VideoEncoderConfig()
public VideoEncoderConfig(int codecType,
VideoDimensions dimensions,
int frameRate,
int bitrate,
int minBitrate,
int orientationMode,
int degradationPreference,
int mirrorMode,
int encodeAlpha)
codecType - Video encoder codec typedimensions - Video dimensionsframeRate - Frame ratebitrate - Video encoding target bitrate (Kbps)minBitrate - Minimum encoding bitrate (Kbps)orientationMode - Video orientation modedegradationPreference - Video degradation preferencemirrorMode - Mirror modeencodeAlpha - Whether to encode alpha datapublic int getCodecType()
public void setCodecType(int codecType)
codecType - Video encoder codec typepublic VideoDimensions getDimensions()
public void setDimensions(VideoDimensions dimensions)
dimensions - Video dimensionspublic int getFrameRate()
public void setFrameRate(int frameRate)
frameRate - Frame ratepublic int getBitrate()
public void setBitrate(int bitrate)
bitrate - Video encoding target bitrate (Kbps)public int getMinBitrate()
public void setMinBitrate(int minBitrate)
minBitrate - Minimum encoding bitrate (Kbps)public int getOrientationMode()
public void setOrientationMode(int orientationMode)
orientationMode - Video orientation modepublic int getDegradationPreference()
public void setDegradationPreference(int degradationPreference)
degradationPreference - Video degradation preferencepublic int getMirrorMode()
public void setMirrorMode(int mirrorMode)
mirrorMode - Mirror modepublic int getEncodeAlpha()
public void setEncodeAlpha(int encodeAlpha)
encodeAlpha - 1 to encode alpha data, 0 otherwisepublic java.lang.String toString()
toString in class java.lang.Object