Package tvi.webrtc
Class DefaultVideoEncoderFactory
- java.lang.Object
-
- tvi.webrtc.DefaultVideoEncoderFactory
-
- All Implemented Interfaces:
VideoEncoderFactory
public class DefaultVideoEncoderFactory extends java.lang.Object implements VideoEncoderFactory
Helper class that combines HW and SW encoders.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface tvi.webrtc.VideoEncoderFactory
VideoEncoderFactory.VideoEncoderSelector
-
-
Constructor Summary
Constructors Constructor Description DefaultVideoEncoderFactory(EglBase.Context eglContext, boolean enableIntelVp8Encoder, boolean enableH264HighProfile)
DefaultVideoEncoderFactory(EglBase.Context eglContext, boolean enableIntelVp8Encoder, boolean enableH264HighProfile, boolean enableH264HuaweiSupport)
Create encoder factory using default hardware encoder factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VideoEncoder
createEncoder(VideoCodecInfo info)
Creates an encoder for the given video codec.VideoCodecInfo[]
getSupportedCodecs()
Enumerates the list of supported video codecs.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tvi.webrtc.VideoEncoderFactory
getEncoderSelector, getImplementations
-
-
-
-
Constructor Detail
-
DefaultVideoEncoderFactory
public DefaultVideoEncoderFactory(EglBase.Context eglContext, boolean enableIntelVp8Encoder, boolean enableH264HighProfile)
-
DefaultVideoEncoderFactory
public DefaultVideoEncoderFactory(EglBase.Context eglContext, boolean enableIntelVp8Encoder, boolean enableH264HighProfile, boolean enableH264HuaweiSupport)
Create encoder factory using default hardware encoder factory.
-
-
Method Detail
-
createEncoder
@Nullable public VideoEncoder createEncoder(VideoCodecInfo info)
Description copied from interface:VideoEncoderFactory
Creates an encoder for the given video codec.- Specified by:
createEncoder
in interfaceVideoEncoderFactory
-
getSupportedCodecs
public VideoCodecInfo[] getSupportedCodecs()
Description copied from interface:VideoEncoderFactory
Enumerates the list of supported video codecs. This method will only be called once and the result will be cached.- Specified by:
getSupportedCodecs
in interfaceVideoEncoderFactory
-
-