mirror of
https://github.com/androidx/media.git
synced 2025-05-10 00:59:51 +08:00
Rename DecoderCounters#inputBufferCount
to queuedInputBufferCount
This more accurately reflects the value stored in this field. PiperOrigin-RevId: 414762892
This commit is contained in:
parent
e5c598468e
commit
eaa4ab59a9
@ -36,6 +36,7 @@
|
||||
the `Format#id` field of the subtitle track created from the
|
||||
configuration
|
||||
((#9673)[https://github.com/google/ExoPlayer/issues/9673]).
|
||||
* Rename `DecoderCounters#inputBufferCount` to `queuedInputBufferCount`.
|
||||
* DRM:
|
||||
* Remove `playbackLooper` from `DrmSessionManager.(pre)acquireSession`.
|
||||
When a `DrmSessionManager` is used by an app in a custom `MediaSource`,
|
||||
|
@ -472,7 +472,7 @@ public abstract class DecoderAudioRenderer<
|
||||
onQueueInputBuffer(inputBuffer);
|
||||
decoder.queueInputBuffer(inputBuffer);
|
||||
decoderReceivedBuffers = true;
|
||||
decoderCounters.inputBufferCount++;
|
||||
decoderCounters.queuedInputBufferCount++;
|
||||
inputBuffer = null;
|
||||
return true;
|
||||
default:
|
||||
|
@ -31,7 +31,7 @@ public final class DecoderCounters {
|
||||
/** The number of times a decoder has been released. */
|
||||
public int decoderReleaseCount;
|
||||
/** The number of input buffers queued to the decoder. */
|
||||
public int inputBufferCount;
|
||||
public int queuedInputBufferCount;
|
||||
/**
|
||||
* The number of skipped input buffers.
|
||||
*
|
||||
@ -68,7 +68,7 @@ public final class DecoderCounters {
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
@ -125,7 +125,7 @@ public final class DecoderCounters {
|
||||
public void merge(DecoderCounters other) {
|
||||
decoderInitCount += other.decoderInitCount;
|
||||
decoderReleaseCount += other.decoderReleaseCount;
|
||||
inputBufferCount += other.inputBufferCount;
|
||||
queuedInputBufferCount += other.queuedInputBufferCount;
|
||||
skippedInputBufferCount += other.skippedInputBufferCount;
|
||||
renderedOutputBufferCount += other.renderedOutputBufferCount;
|
||||
skippedOutputBufferCount += other.skippedOutputBufferCount;
|
||||
|
@ -1342,7 +1342,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
|
||||
resetInputBuffer();
|
||||
codecReceivedBuffers = true;
|
||||
codecReconfigurationState = RECONFIGURATION_STATE_NONE;
|
||||
decoderCounters.inputBufferCount++;
|
||||
decoderCounters.queuedInputBufferCount++;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -757,7 +757,7 @@ public abstract class DecoderVideoRenderer extends BaseRenderer {
|
||||
decoder.queueInputBuffer(inputBuffer);
|
||||
buffersInCodecCount++;
|
||||
decoderReceivedBuffers = true;
|
||||
decoderCounters.inputBufferCount++;
|
||||
decoderCounters.queuedInputBufferCount++;
|
||||
inputBuffer = null;
|
||||
return true;
|
||||
default:
|
||||
|
@ -55,7 +55,7 @@ public final class DecoderCountersUtil {
|
||||
int totalInputBufferCount =
|
||||
counters.skippedInputBufferCount
|
||||
+ counters.droppedInputBufferCount
|
||||
+ counters.inputBufferCount;
|
||||
+ counters.queuedInputBufferCount;
|
||||
assertTotalBufferCount(
|
||||
name,
|
||||
counters,
|
||||
|
Loading…
x
Reference in New Issue
Block a user