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.
constructor(@Nullable sharedContext: EglBase.Context, @Nullable codecAllowedPredicate: Predicate<MediaCodecInfo>)
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.
constructor()
Deprecated
Creates a HardwareVideoDecoderFactory that does not use surface textures.