Commit 72088190 by olly Committed by Oliver Woodman

Count input buffers.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=117228451
parent 0135aaa1
...@@ -26,6 +26,7 @@ public final class CodecCounters { ...@@ -26,6 +26,7 @@ public final class CodecCounters {
public int codecInitCount; public int codecInitCount;
public int codecReleaseCount; public int codecReleaseCount;
public int inputBufferCount;
public int outputFormatChangedCount; public int outputFormatChangedCount;
public int outputBuffersChangedCount; public int outputBuffersChangedCount;
public int renderedOutputBufferCount; public int renderedOutputBufferCount;
...@@ -48,6 +49,7 @@ public final class CodecCounters { ...@@ -48,6 +49,7 @@ public final class CodecCounters {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
builder.append("cic:").append(codecInitCount); builder.append("cic:").append(codecInitCount);
builder.append(" crc:").append(codecReleaseCount); builder.append(" crc:").append(codecReleaseCount);
builder.append(" ibc:").append(inputBufferCount);
builder.append(" ofc:").append(outputFormatChangedCount); builder.append(" ofc:").append(outputFormatChangedCount);
builder.append(" obc:").append(outputBuffersChangedCount); builder.append(" obc:").append(outputBuffersChangedCount);
builder.append(" ren:").append(renderedOutputBufferCount); builder.append(" ren:").append(renderedOutputBufferCount);
......
...@@ -661,6 +661,7 @@ public abstract class MediaCodecTrackRenderer extends SampleSourceTrackRenderer ...@@ -661,6 +661,7 @@ public abstract class MediaCodecTrackRenderer extends SampleSourceTrackRenderer
inputIndex = -1; inputIndex = -1;
codecReceivedBuffers = true; codecReceivedBuffers = true;
codecReconfigurationState = RECONFIGURATION_STATE_NONE; codecReconfigurationState = RECONFIGURATION_STATE_NONE;
codecCounters.inputBufferCount++;
onQueuedInputBuffer(presentationTimeUs); onQueuedInputBuffer(presentationTimeUs);
} catch (CryptoException e) { } catch (CryptoException e) {
notifyCryptoError(e); notifyCryptoError(e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment