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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDecoder
@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)
VideoDecoderFactory
createDecoder
in interface VideoDecoderFactory
public VideoCodecInfo[] getSupportedCodecs()
VideoDecoderFactory
getSupportedCodecs
in interface VideoDecoderFactory
6.4.1