public class HardwareVideoEncoderFactory extends java.lang.Object implements VideoEncoderFactory
VideoEncoderFactory.VideoEncoderSelector
Constructor and Description |
---|
HardwareVideoEncoderFactory(boolean enableIntelVp8Encoder,
boolean enableH264HighProfile)
Deprecated.
|
HardwareVideoEncoderFactory(EglBase.Context sharedContext,
boolean enableIntelVp8Encoder,
boolean enableH264HighProfile)
Creates a HardwareVideoEncoderFactory that supports surface texture encoding.
|
HardwareVideoEncoderFactory(EglBase.Context sharedContext,
boolean enableIntelVp8Encoder,
boolean enableH264HighProfile,
boolean enableH264HuaweiSupport)
Creates a HardwareVideoEncoderFactory that supports surface texture encoding.
|
HardwareVideoEncoderFactory(EglBase.Context sharedContext,
boolean enableIntelVp8Encoder,
boolean enableH264HighProfile,
Predicate<android.media.MediaCodecInfo> codecAllowedPredicate,
boolean enableH264HuaweiSupport)
Creates a HardwareVideoEncoderFactory that supports surface texture encoding.
|
Modifier and Type | Method and Description |
---|---|
VideoEncoder |
createEncoder(VideoCodecInfo input)
Creates an encoder for the given video codec.
|
VideoCodecInfo[] |
getSupportedCodecs()
Enumerates the list of supported video codecs.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEncoderSelector, getImplementations
public HardwareVideoEncoderFactory(EglBase.Context sharedContext, boolean enableIntelVp8Encoder, boolean enableH264HighProfile)
sharedContext
- The textures generated will be accessible from this context. May be null,
this disables texture support.enableIntelVp8Encoder
- true if Intel's VP8 encoder enabled.enableH264HighProfile
- true if H264 High Profile enabled.public HardwareVideoEncoderFactory(EglBase.Context sharedContext, boolean enableIntelVp8Encoder, boolean enableH264HighProfile, boolean enableH264HuaweiSupport)
sharedContext
- The textures generated will be accessible from this context. May be null,
this disables texture support.enableIntelVp8Encoder
- true if Intel's VP8 encoder enabled.enableH264HighProfile
- true if H264 High Profile enabled.enableH264HuaweiSupport
- true if H264 Huawei hardware encoding is enabled.public HardwareVideoEncoderFactory(EglBase.Context sharedContext, boolean enableIntelVp8Encoder, boolean enableH264HighProfile, @Nullable Predicate<android.media.MediaCodecInfo> codecAllowedPredicate, boolean enableH264HuaweiSupport)
sharedContext
- The textures generated will be accessible from this context. May be null,
this disables texture support.enableIntelVp8Encoder
- true if Intel's VP8 encoder enabled.enableH264HighProfile
- true if H264 High Profile enabled.codecAllowedPredicate
- optional predicate to filter codecs. All codecs are allowed
when predicate is not provided.enableH264HuaweiSupport
- true if H264 Huawei hardware encoding is enabled.@Deprecated public HardwareVideoEncoderFactory(boolean enableIntelVp8Encoder, boolean enableH264HighProfile)
@Nullable public VideoEncoder createEncoder(VideoCodecInfo input)
VideoEncoderFactory
createEncoder
in interface VideoEncoderFactory
public VideoCodecInfo[] getSupportedCodecs()
VideoEncoderFactory
getSupportedCodecs
in interface VideoEncoderFactory
7.0.3