public final class DecoderCounters
extends java.lang.Object
Counters should be written from the playback thread only. Counters may be read from any thread.
To ensure that the counter values are made visible across threads, users of this class should
invoke ensureUpdated()
prior to reading and after writing.
Modifier and Type | Field and Description |
---|---|
int |
decoderInitCount
The number of times a decoder has been initialized.
|
int |
decoderReleaseCount
The number of times a decoder has been released.
|
int |
droppedOutputBufferCount
The number of dropped output buffers.
|
int |
inputBufferCount
The number of queued input buffers.
|
int |
maxConsecutiveDroppedOutputBufferCount
The maximum number of dropped output buffers without an interleaving rendered output buffer.
|
int |
renderedOutputBufferCount
The number of rendered output buffers.
|
int |
skippedOutputBufferCount
The number of skipped output buffers.
|
Constructor and Description |
---|
DecoderCounters() |
Modifier and Type | Method and Description |
---|---|
void |
ensureUpdated()
Should be called to ensure counter values are made visible across threads.
|
void |
merge(DecoderCounters other)
Merges the counts from
other into this instance. |
public int decoderInitCount
public int decoderReleaseCount
public int inputBufferCount
public int renderedOutputBufferCount
public int skippedOutputBufferCount
A skipped output buffer is an output buffer that was deliberately not rendered.
public int droppedOutputBufferCount
A dropped output buffer is an output buffer that was supposed to be rendered, but was instead dropped because it could not be rendered in time.
public int maxConsecutiveDroppedOutputBufferCount
Skipped output buffers are ignored for the purposes of calculating this value.
public void ensureUpdated()
public void merge(DecoderCounters other)
other
into this instance.other
- The DecoderCounters
to merge into this instance.