public class VideoEncoderFallback
extends java.lang.Object
VideoEncoder.BitrateAllocation, VideoEncoder.Callback, VideoEncoder.CodecSpecificInfo, VideoEncoder.CodecSpecificInfoH264, VideoEncoder.CodecSpecificInfoVP8, VideoEncoder.CodecSpecificInfoVP9, VideoEncoder.EncodeInfo, VideoEncoder.ScalingSettings, VideoEncoder.Settings
构造器和说明 |
---|
VideoEncoderFallback(VideoEncoder fallback,
VideoEncoder primary) |
限定符和类型 | 方法和说明 |
---|---|
VideoCodecStatus |
encode(VideoFrame frame,
VideoEncoder.EncodeInfo info)
Requests the encoder to encode a frame.
|
java.lang.String |
getImplementationName()
Should return a descriptive name for the implementation.
|
VideoEncoder.ScalingSettings |
getScalingSettings()
Any encoder that wants to use WebRTC provided quality scaler must implement this method.
|
VideoCodecStatus |
initEncode(VideoEncoder.Settings settings,
VideoEncoder.Callback encodeCallback)
Initializes the encoding process.
|
VideoCodecStatus |
release()
Releases the encoder.
|
VideoCodecStatus |
setChannelParameters(short packetLoss,
long roundTripTimeMs)
Informs the encoder of the packet loss and the round-trip time of the network.
|
VideoCodecStatus |
setRateAllocation(VideoEncoder.BitrateAllocation allocation,
int framerate)
Sets the bitrate allocation and the target framerate for the encoder.
|
public VideoEncoderFallback(VideoEncoder fallback, VideoEncoder primary)
public VideoCodecStatus initEncode(VideoEncoder.Settings settings, VideoEncoder.Callback encodeCallback)
VideoEncoder
initEncode
在接口中 VideoEncoder
public VideoCodecStatus release()
VideoEncoder
release
在接口中 VideoEncoder
public VideoCodecStatus encode(VideoFrame frame, VideoEncoder.EncodeInfo info)
VideoEncoder
encode
在接口中 VideoEncoder
public VideoCodecStatus setChannelParameters(short packetLoss, long roundTripTimeMs)
VideoEncoder
setChannelParameters
在接口中 VideoEncoder
packetLoss
- How many packets are lost on average per 255 packets.roundTripTimeMs
- Round-trip time of the network in milliseconds.public VideoCodecStatus setRateAllocation(VideoEncoder.BitrateAllocation allocation, int framerate)
VideoEncoder
setRateAllocation
在接口中 VideoEncoder
public VideoEncoder.ScalingSettings getScalingSettings()
VideoEncoder
getScalingSettings
在接口中 VideoEncoder
public java.lang.String getImplementationName()
VideoEncoder
getImplementationName
在接口中 VideoEncoder