Enum Class BufferFlag

java.lang.Object
java.lang.Enum<BufferFlag>
org.monte.media.av.BufferFlag
All Implemented Interfaces:
Serializable, Comparable<BufferFlag>, Constable

public enum BufferFlag extends Enum<BufferFlag>
BufferFlag.
Author:
Werner Randelshofer
  • Enum Constant Details

    • DISCARD

      public static final BufferFlag DISCARD
      Indicates that the data in this buffer should be ignored.
    • KEYFRAME

      public static final BufferFlag KEYFRAME
      Indicates that this Buffer holds an intra-coded picture, which can be decoded independently.
    • END_OF_MEDIA

      public static final BufferFlag END_OF_MEDIA
      Indicates that the data in this buffer is at the end of the media.
    • PREFETCH

      public static final BufferFlag PREFETCH
      Indicates that the data in this buffer is used for initializing the decoding queue.

      This flag is used when the media time of a track is set to a non-keyframe sample. Thus decoding must start at a keyframe at an earlier time.

      Decoders should decode the buffer. Encoders and Multiplexers should discard the buffer.

    • SAME_DATA

      public static final BufferFlag SAME_DATA
      Indicates that this buffer is known to have the same data as the previous buffer. This may improve encoding performance.
  • Method Details

    • values

      public static BufferFlag[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BufferFlag valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null