HardwareVideoEncoderFactory

constructor(sharedContext: EglBase.Context, enableIntelVp8Encoder: Boolean, enableH264HighProfile: Boolean)

Creates a HardwareVideoEncoderFactory that supports surface texture encoding.

Parameters

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.


constructor(sharedContext: EglBase.Context, enableIntelVp8Encoder: Boolean, enableH264HighProfile: Boolean, @Nullable codecAllowedPredicate: Predicate<MediaCodecInfo>)

Creates a HardwareVideoEncoderFactory that supports surface texture encoding.

Parameters

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.


constructor(enableIntelVp8Encoder: Boolean, enableH264HighProfile: Boolean)

Deprecated