Rename DecoderCounters#inputBufferCount
to queuedInputBufferCount
This more accurately reflects the value stored in this field. PiperOrigin-RevId: 414762892
This commit is contained in:
parent
87510592bb
commit
d0c59eb5f1
@ -34,7 +34,7 @@ public final class DecoderCounters {
|
|||||||
/** The number of times a decoder has been released. */
|
/** The number of times a decoder has been released. */
|
||||||
public int decoderReleaseCount;
|
public int decoderReleaseCount;
|
||||||
/** The number of input buffers queued to the decoder. */
|
/** The number of input buffers queued to the decoder. */
|
||||||
public int inputBufferCount;
|
public int queuedInputBufferCount;
|
||||||
/**
|
/**
|
||||||
* The number of skipped input buffers.
|
* The number of skipped input buffers.
|
||||||
*
|
*
|
||||||
@ -71,7 +71,7 @@ public final class DecoderCounters {
|
|||||||
/**
|
/**
|
||||||
* The maximum number of dropped buffers without an interleaving rendered output buffer.
|
* The maximum number of dropped buffers without an interleaving rendered output buffer.
|
||||||
*
|
*
|
||||||
* <p>Skipped output buffers are ignored for the purposes of calculating this value.
|
* <p>Skipped buffers are ignored for the purposes of calculating this value.
|
||||||
*/
|
*/
|
||||||
public int maxConsecutiveDroppedBufferCount;
|
public int maxConsecutiveDroppedBufferCount;
|
||||||
/**
|
/**
|
||||||
@ -128,7 +128,7 @@ public final class DecoderCounters {
|
|||||||
public void merge(DecoderCounters other) {
|
public void merge(DecoderCounters other) {
|
||||||
decoderInitCount += other.decoderInitCount;
|
decoderInitCount += other.decoderInitCount;
|
||||||
decoderReleaseCount += other.decoderReleaseCount;
|
decoderReleaseCount += other.decoderReleaseCount;
|
||||||
inputBufferCount += other.inputBufferCount;
|
queuedInputBufferCount += other.queuedInputBufferCount;
|
||||||
skippedInputBufferCount += other.skippedInputBufferCount;
|
skippedInputBufferCount += other.skippedInputBufferCount;
|
||||||
renderedOutputBufferCount += other.renderedOutputBufferCount;
|
renderedOutputBufferCount += other.renderedOutputBufferCount;
|
||||||
skippedOutputBufferCount += other.skippedOutputBufferCount;
|
skippedOutputBufferCount += other.skippedOutputBufferCount;
|
||||||
|
@ -476,7 +476,7 @@ public abstract class DecoderAudioRenderer<
|
|||||||
onQueueInputBuffer(inputBuffer);
|
onQueueInputBuffer(inputBuffer);
|
||||||
decoder.queueInputBuffer(inputBuffer);
|
decoder.queueInputBuffer(inputBuffer);
|
||||||
decoderReceivedBuffers = true;
|
decoderReceivedBuffers = true;
|
||||||
decoderCounters.inputBufferCount++;
|
decoderCounters.queuedInputBufferCount++;
|
||||||
inputBuffer = null;
|
inputBuffer = null;
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
|
@ -1344,7 +1344,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
|
|||||||
resetInputBuffer();
|
resetInputBuffer();
|
||||||
codecReceivedBuffers = true;
|
codecReceivedBuffers = true;
|
||||||
codecReconfigurationState = RECONFIGURATION_STATE_NONE;
|
codecReconfigurationState = RECONFIGURATION_STATE_NONE;
|
||||||
decoderCounters.inputBufferCount++;
|
decoderCounters.queuedInputBufferCount++;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -760,7 +760,7 @@ public abstract class DecoderVideoRenderer extends BaseRenderer {
|
|||||||
decoder.queueInputBuffer(inputBuffer);
|
decoder.queueInputBuffer(inputBuffer);
|
||||||
buffersInCodecCount++;
|
buffersInCodecCount++;
|
||||||
decoderReceivedBuffers = true;
|
decoderReceivedBuffers = true;
|
||||||
decoderCounters.inputBufferCount++;
|
decoderCounters.queuedInputBufferCount++;
|
||||||
inputBuffer = null;
|
inputBuffer = null;
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
|
@ -57,7 +57,7 @@ public final class DecoderCountersUtil {
|
|||||||
int totalInputBufferCount =
|
int totalInputBufferCount =
|
||||||
counters.skippedInputBufferCount
|
counters.skippedInputBufferCount
|
||||||
+ counters.droppedInputBufferCount
|
+ counters.droppedInputBufferCount
|
||||||
+ counters.inputBufferCount;
|
+ counters.queuedInputBufferCount;
|
||||||
assertTotalBufferCount(
|
assertTotalBufferCount(
|
||||||
name,
|
name,
|
||||||
counters,
|
counters,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user