Class DecoderCountersUtil

    • Method Detail

      • getTotalBufferCount

        public static int getTotalBufferCount​(DecoderCounters counters)
        Returns the sum of the skipped, dropped and rendered buffers.
        Parameters:
        counters - The counters for which the total should be calculated.
        Returns:
        The sum of the skipped, dropped and rendered buffers.
      • assertSkippedOutputBufferCount

        public static void assertSkippedOutputBufferCount​(String name,
                                                          DecoderCounters counters,
                                                          int expected)
      • assertTotalBufferCount

        public static void assertTotalBufferCount​(String name,
                                                  DecoderCounters counters)
        Asserts that the input and output values in counters are self-consistent.
      • assertTotalBufferCount

        public static void assertTotalBufferCount​(String name,
                                                  DecoderCounters counters,
                                                  int minCount,
                                                  int maxCount)
      • assertDroppedBufferLimit

        public static void assertDroppedBufferLimit​(String name,
                                                    DecoderCounters counters,
                                                    int limit)
      • assertConsecutiveDroppedBufferLimit

        public static void assertConsecutiveDroppedBufferLimit​(String name,
                                                               DecoderCounters counters,
                                                               int limit)
      • assertVideoFrameProcessingOffsetSampleCount

        public static void assertVideoFrameProcessingOffsetSampleCount​(String name,
                                                                       DecoderCounters counters,
                                                                       int minCount,
                                                                       int maxCount)