Tabnine Logo
DecoderInputBuffer.newFlagsOnlyInstance
Code IndexAdd Tabnine to your IDE (free)

How to use
newFlagsOnlyInstance
method
in
com.google.android.exoplayer2.decoder.DecoderInputBuffer

Best Java code snippets using com.google.android.exoplayer2.decoder.DecoderInputBuffer.newFlagsOnlyInstance (Showing top 3 results out of 315)

origin: google/ExoPlayer

/**
 * @param eventHandler A handler to use when delivering events to {@code eventListener}. May be
 *     null if delivery of events is not required.
 * @param eventListener A listener of events. May be null if delivery of events is not required.
 * @param drmSessionManager For use with encrypted media. May be null if support for encrypted
 *     media is not required.
 * @param playClearSamplesWithoutKeys Encrypted media may contain clear (un-encrypted) regions.
 *     For example a media file may start with a short clear region so as to allow playback to
 *     begin in parallel with key acquisition. This parameter specifies whether the renderer is
 *     permitted to play clear regions of encrypted media files before {@code drmSessionManager}
 *     has obtained the keys necessary to decrypt encrypted regions of the media.
 * @param audioSink The sink to which audio will be output.
 */
public SimpleDecoderAudioRenderer(
  @Nullable Handler eventHandler,
  @Nullable AudioRendererEventListener eventListener,
  @Nullable DrmSessionManager<ExoMediaCrypto> drmSessionManager,
  boolean playClearSamplesWithoutKeys,
  AudioSink audioSink) {
 super(C.TRACK_TYPE_AUDIO);
 this.drmSessionManager = drmSessionManager;
 this.playClearSamplesWithoutKeys = playClearSamplesWithoutKeys;
 eventDispatcher = new EventDispatcher(eventHandler, eventListener);
 this.audioSink = audioSink;
 audioSink.setListener(new AudioSinkListener());
 formatHolder = new FormatHolder();
 flagsOnlyBuffer = DecoderInputBuffer.newFlagsOnlyInstance();
 decoderReinitializationState = REINITIALIZATION_STATE_NONE;
 audioTrackNeedsConfigure = true;
}
origin: google/ExoPlayer

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

formatHolder = new FormatHolder();
formatQueue = new TimedValueQueue<>();
flagsOnlyBuffer = DecoderInputBuffer.newFlagsOnlyInstance();
eventDispatcher = new EventDispatcher(eventHandler, eventListener);
outputMode = VpxDecoder.OUTPUT_MODE_NONE;
com.google.android.exoplayer2.decoderDecoderInputBuffernewFlagsOnlyInstance

Javadoc

Creates a new instance for which #isFlagsOnly() will return true.

Popular methods of DecoderInputBuffer

  • <init>
  • 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
  • addFlag
  • createReplacementByteBuffer
  • getFlag
  • createReplacementByteBuffer,
  • getFlag,
  • isFlagsOnly

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Join (org.hibernate.mapping)
  • Best IntelliJ plugins
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