org.gstreamer
Enum BufferFlag

java.lang.Object
  extended by java.lang.Enum<BufferFlag>
      extended by org.gstreamer.BufferFlag
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BufferFlag>, IntegerEnum

public enum BufferFlag
extends java.lang.Enum<BufferFlag>
implements IntegerEnum

A set of buffer flags used to describe properties of a Buffer.


Enum Constant Summary
DELTA_UNIT
          This unit cannot be decoded independently.
DISCONT
          The Buffer marks a discontinuity in the stream.
GAP
          The Buffer has been created to fill a gap in the stream and contains media neutral data (elements can switch to optimized code path that ignores the buffer content).
IN_CAPS
          The Buffer has been added as a field in a Caps.
LAST
           
PREROLL
          The Buffer is part of a preroll and should not be displayed.
READONLY
          The Buffer is read-only.
UNKNOWN
          The value used for unknown native values
 
Method Summary
 int intValue()
          Get the integer value of the enum.
static BufferFlag valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BufferFlag[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

READONLY

public static final BufferFlag READONLY
The Buffer is read-only. This means the data of the buffer should not be modified. The metadata might still be modified.


PREROLL

public static final BufferFlag PREROLL
The Buffer is part of a preroll and should not be displayed.


DISCONT

public static final BufferFlag DISCONT
The Buffer marks a discontinuity in the stream. This typically occurs after a seek or a dropped buffer from a live or network source.


IN_CAPS

public static final BufferFlag IN_CAPS
The Buffer has been added as a field in a Caps.


GAP

public static final BufferFlag GAP
The Buffer has been created to fill a gap in the stream and contains media neutral data (elements can switch to optimized code path that ignores the buffer content).


DELTA_UNIT

public static final BufferFlag DELTA_UNIT
This unit cannot be decoded independently.


LAST

public static final BufferFlag LAST

UNKNOWN

public static final BufferFlag UNKNOWN
The value used for unknown native values

Method Detail

values

public static BufferFlag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BufferFlag c : BufferFlag.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BufferFlag valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

intValue

public final int intValue()
Get the integer value of the enum.

Specified by:
intValue in interface IntegerEnum
Returns:
The integer value for this enum.