Java 类com.google.android.exoplayer.CodecCounters 实例源码

项目:android_packages_apps_tv    文件:Ac3PassthroughTrackRenderer.java   
public Ac3PassthroughTrackRenderer(SampleSource source, Handler eventHandler,
        EventListener listener) {
    mSource = source.register();
    mEventHandler = eventHandler;
    mEventListener = listener;
    mTrackIndex = -1;
    mSampleHolder = new SampleHolder(SampleHolder.BUFFER_REPLACEMENT_MODE_DIRECT);
    mSampleHolder.ensureSpaceForWrite(DEFAULT_INPUT_BUFFER_SIZE);
    mOutputBuffer = ByteBuffer.allocate(DEFAULT_OUTPUT_BUFFER_SIZE);
    mFormatHolder = new MediaFormatHolder();
    AUDIO_TRACK.restart();
    mCodecCounters = new CodecCounters();
    mMonitor = new AudioTrackMonitor();
    mAudioClock = new AudioClock();
    mTracksIndex = new ArrayList<>();
}
项目:ExoPlayer-Demo    文件:CodecCountersUtil.java   
public static void assertOutputFormatChangedCount(String name, CodecCounters counters,
    int expected) {
  counters.ensureUpdated();
  int actual = counters.outputFormatChangedCount;
  TestCase.assertEquals("Codec(" + name + ") output format changed " + actual + " times. "
      + "Expected " + expected + " times.", expected, actual);
}
项目:ExoPlayer-Demo    文件:CodecCountersUtil.java   
public static void assertOutputBuffersChangedLimit(String name, CodecCounters counters,
    int limit) {
  counters.ensureUpdated();
  int actual = counters.outputBuffersChangedCount;
  TestCase.assertTrue("Codec(" + name + ") output buffers changed " + actual + " times. "
      + "Limit: " + limit + "", actual <= limit);
}
项目:ExoPlayer-Demo    文件:CodecCountersUtil.java   
public static void assertSkippedOutputBufferCount(String name, CodecCounters counters,
    int expected) {
  counters.ensureUpdated();
  int actual = counters.skippedOutputBufferCount;
  TestCase.assertEquals("Codec(" + name + ") skipped " + actual + " buffers. Expected "
      + expected + "", expected, actual);
}
项目:ExoPlayer-Demo    文件:CodecCountersUtil.java   
public static void assertTotalOutputBufferCount(String name, CodecCounters counters,
    int minCount, int maxCount) {
  counters.ensureUpdated();
  int actual = getTotalOutputBuffers(counters);
  TestCase.assertTrue("Codec(" + name + ") output " + actual + " buffers. Expected in range ["
      + minCount + ", " + maxCount + "].", minCount <= actual && actual <= maxCount);
}
项目:ExoPlayer-Demo    文件:CodecCountersUtil.java   
public static void assertDroppedOutputBufferLimit(String name, CodecCounters counters,
    int limit) {
  counters.ensureUpdated();
  int actual = counters.droppedOutputBufferCount;
  TestCase.assertTrue("Codec(" + name + ") was late decoding: " + actual + " buffers. "
      + "Limit: " + limit + "", actual <= limit);
}
项目:ExoPlayer-Demo    文件:CodecCountersUtil.java   
public static void assertConsecutiveDroppedOutputBufferLimit(String name, CodecCounters counters,
    int limit) {
  counters.ensureUpdated();
  int actual = counters.maxConsecutiveDroppedOutputBufferCount;
  TestCase.assertTrue("Codec(" + name + ") was late decoding: " + actual
      + " buffers consecutively. " + "Limit: " + limit + "", actual <= limit);
}
项目:androidtv-sample    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
    return codecCounters;
}
项目:androidtv-sample    文件:VideoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
    return codecCounters;
}
项目:AndroidTvDemo    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:chilly    文件:VideoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
    return codecCounters;
}
项目:ShaddockVideoPlayer    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:android-tv-news    文件:VideoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
    return codecCounters;
}
项目:mimi-reader    文件:ExoPlayerHelper.java   
@Override
public CodecCounters getCodecCounters() {
    return codecCounters;
}
项目:ExoPlayerController    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:FriendsCameraSDK-android    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:talk-android    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:OKPlayer    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:miku    文件:DebugTextViewHelper.java   
private String getVideoCodecCountersString() {
  CodecCounters codecCounters = debuggable.getCodecCounters();
  return codecCounters == null ? "" : codecCounters.getDebugString();
}
项目:miku    文件:MediaPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:ExoPlayer-Demo    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:ExoPlayer-Demo    文件:DebugTextViewHelper.java   
private String getVideoCodecCountersString() {
  CodecCounters codecCounters = debuggable.getCodecCounters();
  return codecCounters == null ? "" : codecCounters.getDebugString();
}
项目:Mediathek    文件:Player.java   
@Override
public CodecCounters getCodecCounters() {
    return codecCounters;
}
项目:sbs-android-tv    文件:VideoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
    return codecCounters;
}
项目:droidkaigi2016    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:danish-media-license    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:WliveTV    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:Android-Example-HLS-ExoPlayer    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:exoplayer-textureview    文件:EventProxy.java   
@Override
public CodecCounters getCodecCounters() {
    return codecCounters;
}
项目:ExoPlayerWrapper    文件:ExoPlayerWrapper.java   
@Override
public CodecCounters getCodecCounters() {
    return codecCounters;
}
项目:exoPlayerHLS    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:iview-android-tv    文件:VideoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
    return codecCounters;
}
项目:Android-Birdcopy-Application    文件:FlyingPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:SimpleExoPlayer    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
    return codecCounters;
}
项目:OkPlayer    文件:OkPlayer.java   
@Override
public CodecCounters getCodecCounters() {
    return codecCounters;
}
项目:droidkaigi2016    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:ExoPlayer    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
项目:ExoPlayer    文件:DebugTextViewHelper.java   
private String getVideoCodecCountersString() {
  CodecCounters codecCounters = debuggable.getCodecCounters();
  return codecCounters == null ? "" : codecCounters.getDebugString();
}
项目:androidtv-sample-inputs    文件:DemoPlayer.java   
@Override
public CodecCounters getCodecCounters() {
    return codecCounters;
}
项目:google-media-framework-android    文件:ExoplayerWrapper.java   
public CodecCounters getCodecCounters() {
  return codecCounters;
}