DecoderCountersUtil


@UnstableApi
class DecoderCountersUtil


Assertions for DecoderCounters.

Summary

Public functions

java-static Unit
assertConsecutiveDroppedBufferLimit(
    name: String!,
    counters: DecoderCounters!,
    limit: Int
)
java-static Unit
assertDroppedBufferLimit(
    name: String!,
    counters: DecoderCounters!,
    limit: Int
)
java-static Unit
assertSkippedOutputBufferCount(
    name: String!,
    counters: DecoderCounters!,
    expected: Int
)
java-static Unit

Asserts that the input and output values in counters are self-consistent.

java-static Unit
assertTotalBufferCount(
    name: String!,
    counters: DecoderCounters!,
    minCount: Int,
    maxCount: Int
)
java-static Unit
assertVideoFrameProcessingOffsetSampleCount(
    name: String!,
    counters: DecoderCounters!,
    minCount: Int,
    maxCount: Int
)
java-static Int

Returns the sum of the skipped, dropped and rendered buffers.

Public functions

assertConsecutiveDroppedBufferLimit

java-static fun assertConsecutiveDroppedBufferLimit(
    name: String!,
    counters: DecoderCounters!,
    limit: Int
): Unit

assertDroppedBufferLimit

java-static fun assertDroppedBufferLimit(
    name: String!,
    counters: DecoderCounters!,
    limit: Int
): Unit

assertSkippedOutputBufferCount

java-static fun assertSkippedOutputBufferCount(
    name: String!,
    counters: DecoderCounters!,
    expected: Int
): Unit

assertTotalBufferCount

java-static fun assertTotalBufferCount(name: String!, counters: DecoderCounters!): Unit

Asserts that the input and output values in counters are self-consistent.

assertTotalBufferCount

java-static fun assertTotalBufferCount(
    name: String!,
    counters: DecoderCounters!,
    minCount: Int,
    maxCount: Int
): Unit

assertVideoFrameProcessingOffsetSampleCount

java-static fun assertVideoFrameProcessingOffsetSampleCount(
    name: String!,
    counters: DecoderCounters!,
    minCount: Int,
    maxCount: Int
): Unit

getTotalBufferCount

java-static fun getTotalBufferCount(counters: DecoderCounters!): Int

Returns the sum of the skipped, dropped and rendered buffers.

Parameters
counters: DecoderCounters!

The counters for which the total should be calculated.

Returns
Int

The sum of the skipped, dropped and rendered buffers.