当前位置: 首页>>代码示例>>Java>>正文


Java CodecCounters类代码示例

本文整理汇总了Java中com.google.android.exoplayer.CodecCounters的典型用法代码示例。如果您正苦于以下问题:Java CodecCounters类的具体用法?Java CodecCounters怎么用?Java CodecCounters使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


CodecCounters类属于com.google.android.exoplayer包,在下文中一共展示了CodecCounters类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: Ac3PassthroughTrackRenderer

import com.google.android.exoplayer.CodecCounters; //导入依赖的package包/类
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<>();
}
 
开发者ID:trevd,项目名称:android_packages_apps_tv,代码行数:17,代码来源:Ac3PassthroughTrackRenderer.java

示例2: assertOutputFormatChangedCount

import com.google.android.exoplayer.CodecCounters; //导入依赖的package包/类
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);
}
 
开发者ID:asifkhan11,项目名称:ExoPlayer-Demo,代码行数:8,代码来源:CodecCountersUtil.java

示例3: assertOutputBuffersChangedLimit

import com.google.android.exoplayer.CodecCounters; //导入依赖的package包/类
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);
}
 
开发者ID:asifkhan11,项目名称:ExoPlayer-Demo,代码行数:8,代码来源:CodecCountersUtil.java

示例4: assertSkippedOutputBufferCount

import com.google.android.exoplayer.CodecCounters; //导入依赖的package包/类
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);
}
 
开发者ID:asifkhan11,项目名称:ExoPlayer-Demo,代码行数:8,代码来源:CodecCountersUtil.java

示例5: assertTotalOutputBufferCount

import com.google.android.exoplayer.CodecCounters; //导入依赖的package包/类
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);
}
 
开发者ID:asifkhan11,项目名称:ExoPlayer-Demo,代码行数:8,代码来源:CodecCountersUtil.java

示例6: assertDroppedOutputBufferLimit

import com.google.android.exoplayer.CodecCounters; //导入依赖的package包/类
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);
}
 
开发者ID:asifkhan11,项目名称:ExoPlayer-Demo,代码行数:8,代码来源:CodecCountersUtil.java

示例7: assertConsecutiveDroppedOutputBufferLimit

import com.google.android.exoplayer.CodecCounters; //导入依赖的package包/类
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);
}
 
开发者ID:asifkhan11,项目名称:ExoPlayer-Demo,代码行数:8,代码来源:CodecCountersUtil.java

示例8: getCodecCounters

import com.google.android.exoplayer.CodecCounters; //导入依赖的package包/类
@Override
public CodecCounters getCodecCounters() {
    return codecCounters;
}
 
开发者ID:nejtv,项目名称:androidtv-sample,代码行数:5,代码来源:DemoPlayer.java

示例9: getCodecCounters

import com.google.android.exoplayer.CodecCounters; //导入依赖的package包/类
@Override
public CodecCounters getCodecCounters() {
  return codecCounters;
}
 
开发者ID:Dreamxiaoxuan,项目名称:AndroidTvDemo,代码行数:5,代码来源:DemoPlayer.java

示例10: getVideoCodecCountersString

import com.google.android.exoplayer.CodecCounters; //导入依赖的package包/类
private String getVideoCodecCountersString() {
  CodecCounters codecCounters = debuggable.getCodecCounters();
  return codecCounters == null ? "" : codecCounters.getDebugString();
}
 
开发者ID:XueyanLiu,项目名称:miku,代码行数:5,代码来源:DebugTextViewHelper.java

示例11: getCodecCounters

import com.google.android.exoplayer.CodecCounters; //导入依赖的package包/类
public CodecCounters getCodecCounters() {
  return codecCounters;
}
 
开发者ID:googleads,项目名称:google-media-framework-android,代码行数:4,代码来源:ExoplayerWrapper.java


注:本文中的com.google.android.exoplayer.CodecCounters类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。