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
)

Asserts that the skipped output buffer count is expected.

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

Asserts that the skipped output buffer count is within tolerance of expected.

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

Asserts that the skipped output buffer count is expected.

Parameters
name: String!

The name of the decoder.

counters: DecoderCounters!

The decoder counters.

expected: Int

The expected number of skipped output buffers.

assertSkippedOutputBufferCount

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

Asserts that the skipped output buffer count is within tolerance of expected.

Parameters
name: String!

The name of the decoder.

counters: DecoderCounters!

The decoder counters.

expected: Int

The expected number of skipped output buffers.

tolerance: Int

The allowed tolerance around the expected count.

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.