Package tvi.webrtc
Class HardwareVideoDecoderFactory
java.lang.Object
tvi.webrtc.HardwareVideoDecoderFactory
- All Implemented Interfaces:
VideoDecoderFactory
Factory for Android hardware VideoDecoders.
-
Constructor Summary
ConstructorDescriptionDeprecated.HardwareVideoDecoderFactory
(EglBase.Context sharedContext) Creates a HardwareVideoDecoderFactory that supports surface texture rendering.HardwareVideoDecoderFactory
(EglBase.Context sharedContext, Predicate<android.media.MediaCodecInfo> codecAllowedPredicate) Creates a HardwareVideoDecoderFactory that supports surface texture rendering. -
Method Summary
Modifier and TypeMethodDescriptioncreateDecoder
(VideoCodecInfo codecType) Creates a VideoDecoder for the given codec.Enumerates the list of supported video codecs.
-
Constructor Details
-
HardwareVideoDecoderFactory
Deprecated.Creates a HardwareVideoDecoderFactory that does not use surface textures. -
HardwareVideoDecoderFactory
Creates a HardwareVideoDecoderFactory that supports surface texture rendering.- Parameters:
sharedContext
- The textures generated will be accessible from this context. May be null, this disables texture support.
-
HardwareVideoDecoderFactory
public HardwareVideoDecoderFactory(@Nullable EglBase.Context sharedContext, @Nullable Predicate<android.media.MediaCodecInfo> codecAllowedPredicate) Creates a HardwareVideoDecoderFactory that supports surface texture rendering.- Parameters:
sharedContext
- The textures generated will be accessible from this context. May be null, this disables texture support.codecAllowedPredicate
- predicate to filter codecs. It is combined with the default predicate that only allows hardware codecs.
-
-
Method Details
-
createDecoder
Description copied from interface:VideoDecoderFactory
Creates a VideoDecoder for the given codec. Supports the same codecs supported by VideoEncoderFactory.- Specified by:
createDecoder
in interfaceVideoDecoderFactory
-
getSupportedCodecs
Description copied from interface:VideoDecoderFactory
Enumerates the list of supported video codecs.- Specified by:
getSupportedCodecs
in interfaceVideoDecoderFactory
-