Tabnine Logo
DecoderInputBuffer.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.google.android.exoplayer2.decoder.DecoderInputBuffer
constructor

Best Java code snippets using com.google.android.exoplayer2.decoder.DecoderInputBuffer.<init> (Showing top 10 results out of 315)

origin: google/ExoPlayer

/**
 * Creates a new instance for which {@link #isFlagsOnly()} will return true.
 *
 * @return A new flags only input buffer.
 */
public static DecoderInputBuffer newFlagsOnlyInstance() {
 return new DecoderInputBuffer(BUFFER_REPLACEMENT_MODE_DISABLED);
}
origin: google/ExoPlayer

@Override
protected DecoderInputBuffer createInputBuffer() {
 return new DecoderInputBuffer(DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_DIRECT);
}
origin: google/ExoPlayer

@Override
protected DecoderInputBuffer createInputBuffer() {
 return new DecoderInputBuffer(DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_DIRECT);
}
origin: google/ExoPlayer

@Override
protected DecoderInputBuffer createInputBuffer() {
 return new DecoderInputBuffer(DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_DIRECT);
}
origin: google/ExoPlayer

public FakeRenderer(Format... expectedFormats) {
 super(expectedFormats.length == 0 ? C.TRACK_TYPE_UNKNOWN
   : MimeTypes.getTrackType(expectedFormats[0].sampleMimeType));
 this.expectedFormats = Collections.unmodifiableList(Arrays.asList(expectedFormats));
 buffer = new DecoderInputBuffer(DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_NORMAL);
 formatHolder = new FormatHolder();
 lastSamplePositionUs = Long.MIN_VALUE;
}
origin: google/ExoPlayer

public CameraMotionRenderer() {
 super(C.TRACK_TYPE_CAMERA_MOTION);
 formatHolder = new FormatHolder();
 buffer = new DecoderInputBuffer(DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_NORMAL);
 scratch = new ParsableByteArray();
}
origin: google/ExoPlayer

public FakeRenderer(Format... expectedFormats) {
 super(expectedFormats.length == 0 ? C.TRACK_TYPE_UNKNOWN
   : MimeTypes.getTrackType(expectedFormats[0].sampleMimeType));
 this.expectedFormats = Collections.unmodifiableList(Arrays.asList(expectedFormats));
 buffer = new DecoderInputBuffer(DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_NORMAL);
 formatHolder = new FormatHolder();
 lastSamplePositionUs = Long.MIN_VALUE;
}
origin: google/ExoPlayer

this.playClearSamplesWithoutKeys = playClearSamplesWithoutKeys;
this.assumedMinimumCodecOperatingRate = assumedMinimumCodecOperatingRate;
buffer = new DecoderInputBuffer(DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_DISABLED);
flagsOnlyBuffer = DecoderInputBuffer.newFlagsOnlyInstance();
formatHolder = new FormatHolder();
origin: google/ExoPlayer

@Before
public void setUp() throws Exception {
 allocator = new DefaultAllocator(false, ALLOCATION_SIZE);
 sampleQueue = new SampleQueue(allocator);
 formatHolder = new FormatHolder();
 inputBuffer = new DecoderInputBuffer(DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_NORMAL);
}
origin: marverenic/Jockey

@Override
public DecoderInputBuffer createInputBuffer() {
 return new DecoderInputBuffer(DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_NORMAL);
}
com.google.android.exoplayer2.decoderDecoderInputBuffer<init>

Popular methods of DecoderInputBuffer

  • clear
  • ensureSpaceForWrite
    Ensures that #data is large enough to accommodate a write of a given length at its current position.
  • isEndOfStream
  • setFlags
  • flip
    Flips #data in preparation for being queued to a decoder.
  • isEncrypted
    Returns whether the C#BUFFER_FLAG_ENCRYPTED flag is set.
  • isDecodeOnly
  • isKeyFrame
  • newFlagsOnlyInstance
    Creates a new instance for which #isFlagsOnly() will return true.
  • addFlag
  • createReplacementByteBuffer
  • getFlag
  • createReplacementByteBuffer,
  • getFlag,
  • isFlagsOnly

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • JOptionPane (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now