Package tvi.webrtc

Class HardwareVideoEncoderFactory

  • All Implemented Interfaces:
    VideoEncoderFactory

    public class HardwareVideoEncoderFactory
    extends java.lang.Object
    implements VideoEncoderFactory
    Factory for android hardware video encoders.
    • Constructor Detail

      • HardwareVideoEncoderFactory

        public HardwareVideoEncoderFactory​(EglBase.Context sharedContext,
                                           boolean enableIntelVp8Encoder,
                                           boolean enableH264HighProfile)
        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.
      • HardwareVideoEncoderFactory

        public HardwareVideoEncoderFactory​(EglBase.Context sharedContext,
                                           boolean enableIntelVp8Encoder,
                                           boolean enableH264HighProfile,
                                           boolean enableH264HuaweiSupport)
        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.
        enableH264HuaweiSupport - true if H264 Huawei hardware encoding is enabled.
      • HardwareVideoEncoderFactory

        public HardwareVideoEncoderFactory​(EglBase.Context sharedContext,
                                           boolean enableIntelVp8Encoder,
                                           boolean enableH264HighProfile,
                                           @Nullable
                                           Predicate<android.media.MediaCodecInfo> codecAllowedPredicate,
                                           boolean enableH264HuaweiSupport)
        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.
        enableH264HuaweiSupport - true if H264 Huawei hardware encoding is enabled.
      • HardwareVideoEncoderFactory

        @Deprecated
        public HardwareVideoEncoderFactory​(boolean enableIntelVp8Encoder,
                                           boolean enableH264HighProfile)
        Deprecated.