public class HardwareVideoDecoderFactory
extends java.lang.Object
| Constructor and Description |
|---|
HardwareVideoDecoderFactory()
Deprecated.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
VideoDecoder |
createDecoder(VideoCodecInfo codecType)
Creates a decoder for the given video codec.
|
VideoCodecInfo[] |
getSupportedCodecs()
Enumerates the list of supported video codecs.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDecoder@Deprecated public HardwareVideoDecoderFactory()
public HardwareVideoDecoderFactory(@Nullable
EglBase.Context sharedContext)
sharedContext - The textures generated will be accessible from this context. May be null,
this disables texture support.public HardwareVideoDecoderFactory(@Nullable
EglBase.Context sharedContext,
@Nullable
Predicate<android.media.MediaCodecInfo> codecAllowedPredicate)
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.@Nullable public VideoDecoder createDecoder(VideoCodecInfo codecType)
VideoDecoderFactorycreateDecoder in interface VideoDecoderFactorypublic VideoCodecInfo[] getSupportedCodecs()
VideoDecoderFactorygetSupportedCodecs in interface VideoDecoderFactory