Class Libgav1VideoRenderer

    • Field Detail

      • THREAD_COUNT_AUTODETECT

        public static final int THREAD_COUNT_AUTODETECT
        Deprecated.
        Attempts to use as many threads as performance processors available on the device. If the number of performance processors cannot be detected, the number of available processors is used.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Libgav1VideoRenderer

        public Libgav1VideoRenderer​(long allowedJoiningTimeMs,
                                    @Nullable
                                    Handler eventHandler,
                                    @Nullable
                                    VideoRendererEventListener eventListener,
                                    int maxDroppedFramesToNotify)
        Deprecated.
        Creates a new instance.
        Parameters:
        allowedJoiningTimeMs - The maximum duration in milliseconds for which this video renderer can attempt to seamlessly join an ongoing playback.
        eventHandler - A handler to use when delivering events to eventListener. May be null if delivery of events is not required.
        eventListener - A listener of events. May be null if delivery of events is not required.
        maxDroppedFramesToNotify - The maximum number of frames that can be dropped between invocations of VideoRendererEventListener.onDroppedFrames(int, long).
      • Libgav1VideoRenderer

        public Libgav1VideoRenderer​(long allowedJoiningTimeMs,
                                    @Nullable
                                    Handler eventHandler,
                                    @Nullable
                                    VideoRendererEventListener eventListener,
                                    int maxDroppedFramesToNotify,
                                    int threads,
                                    int numInputBuffers,
                                    int numOutputBuffers)
        Deprecated.
        Creates a new instance.
        Parameters:
        allowedJoiningTimeMs - The maximum duration in milliseconds for which this video renderer can attempt to seamlessly join an ongoing playback.
        eventHandler - A handler to use when delivering events to eventListener. May be null if delivery of events is not required.
        eventListener - A listener of events. May be null if delivery of events is not required.
        maxDroppedFramesToNotify - The maximum number of frames that can be dropped between invocations of VideoRendererEventListener.onDroppedFrames(int, long).
        threads - Number of threads libgav1 will use to decode. If THREAD_COUNT_AUTODETECT is passed, then the number of threads to use is autodetected based on CPU capabilities.
        numInputBuffers - Number of input buffers.
        numOutputBuffers - Number of output buffers.