Package tvi.webrtc
Class DefaultVideoEncoderFactory
java.lang.Object
tvi.webrtc.DefaultVideoEncoderFactory
- All Implemented Interfaces:
VideoEncoderFactory
Helper class that combines HW and SW encoders.
-
Nested Class Summary
Nested classes/interfaces inherited from interface tvi.webrtc.VideoEncoderFactory
VideoEncoderFactory.VideoEncoderSelector
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Globally enables or disables support for hardware encoding for all supported video mime types.static final String
Enables or disables support for hardware encoding of H.264 content.static final String
Enables "High Profile" H.264 support for hardware encoding H.264 content.static final String
Enables support for Huawei's H.264 encoder.static final String
Enables support for MediaTek's hardware encoders (VP8 & H.264 if avail).static final String
Enables or disables support for hardware encoding of VP8 content.static final String
Enables support for Intel's VP8 hardware encoder.static final String
Enables or disables support for hardware encoding of VP9 content. -
Constructor Summary
ConstructorDescriptionDefaultVideoEncoderFactory
(EglBase.Context eglContext, boolean enableIntelVp8Encoder, boolean enableH264HighProfile) DefaultVideoEncoderFactory
(EglBase.Context eglContext, boolean enableIntelVp8Encoder, boolean enableH264HighProfile, boolean enableH264HuaweiSupport, boolean enableMediTekSupport) Create encoder factory using default hardware encoder factory.DefaultVideoEncoderFactory
(EglBase.Context eglContext, Properties config) -
Method Summary
Modifier and TypeMethodDescriptioncreateEncoder
(VideoCodecInfo info) Creates an encoder for the given video codec.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
-
Field Details
-
PROP_ENABLE_HARDWARE_ENCODING
Globally enables or disables support for hardware encoding for all supported video mime types. If disabled, hardware encoding will be disabled regardless if its subsequently enabled for a particular mimetype.- See Also:
-
PROP_ENABLE_HARDWARE_VP8_ENCODING
Enables or disables support for hardware encoding of VP8 content.- See Also:
-
PROP_ENABLE_HARDWARE_VP9_ENCODING
Enables or disables support for hardware encoding of VP9 content.- See Also:
-
PROP_ENABLE_HARDWARE_H264_ENCODING
Enables or disables support for hardware encoding of H.264 content.- See Also:
-
PROP_ENABLE_HARDWARE_H264_HIGH_PROFILE
Enables "High Profile" H.264 support for hardware encoding H.264 content. Has no effect for software encoding.- See Also:
-
PROP_ENABLE_HARDWARE_VP8_INTEL_ENCODER
Enables support for Intel's VP8 hardware encoder.- See Also:
-
PROP_ENABLE_HARDWARE_H264_HUAWEI_ENCODER
Enables support for Huawei's H.264 encoder.- See Also:
-
PROP_ENABLE_HARDWARE_MEDIATEK_ENCODER
Enables support for MediaTek's hardware encoders (VP8 & H.264 if avail).- See Also:
-
-
Constructor Details
-
DefaultVideoEncoderFactory
public DefaultVideoEncoderFactory(EglBase.Context eglContext, boolean enableIntelVp8Encoder, boolean enableH264HighProfile) -
DefaultVideoEncoderFactory
-
DefaultVideoEncoderFactory
public DefaultVideoEncoderFactory(EglBase.Context eglContext, boolean enableIntelVp8Encoder, boolean enableH264HighProfile, boolean enableH264HuaweiSupport, boolean enableMediTekSupport) Create encoder factory using default hardware encoder factory.
-
-
Method Details
-
createEncoder
Description copied from interface:VideoEncoderFactory
Creates an encoder for the given video codec.- Specified by:
createEncoder
in interfaceVideoEncoderFactory
-
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
-