public final class CodecCounters extends Object
Counters should be written from the playback thread only. Counters may be read from any thread.
To ensure that the counter values are correctly reflected between threads, users of this class
should invoke ensureUpdated()
prior to reading and after writing.
Modifier and Type | Field and Description |
---|---|
int |
codecInitCount |
int |
codecReleaseCount |
int |
droppedOutputBufferCount |
int |
inputBufferCount |
int |
maxConsecutiveDroppedOutputBufferCount |
int |
outputBuffersChangedCount |
int |
outputFormatChangedCount |
int |
renderedOutputBufferCount |
int |
skippedOutputBufferCount |
Constructor and Description |
---|
CodecCounters() |
Modifier and Type | Method and Description |
---|---|
void |
ensureUpdated()
Should be invoked from the playback thread after the counters have been updated.
|
String |
getDebugString() |
public int codecInitCount
public int codecReleaseCount
public int inputBufferCount
public int outputFormatChangedCount
public int outputBuffersChangedCount
public int renderedOutputBufferCount
public int skippedOutputBufferCount
public int droppedOutputBufferCount
public int maxConsecutiveDroppedOutputBufferCount
public void ensureUpdated()
public String getDebugString()