Package org.freedesktop.gstreamer.gst
Enum Class BufferFlags
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<BufferFlags>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum BufferFlags
extends Enum<BufferFlags>
implements Enumeration
A set of buffer flags used to describe properties of a
GstBuffer
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionthe buffer data is corrupted.the buffer contains data that should be dropped because it will be clipped against the segment boundaries or because it does not contain data that should be shown to the user.this unit cannot be decoded independently.the buffer marks a data discontinuity in the stream.the buffer can be dropped without breaking the stream, for example to reduce bandwidth.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).the buffer contains header information that is needed to decode the following data.additional media specific flags can be added starting from this flag.the buffer is live data and should be discarded in the PAUSED state.the buffer contains a media specific marker.This buffer is important and should not be dropped.the buffer timestamps might have a discontinuity and this buffer is a good point to resynchronize.Elements which write to disk or permanent storage should ensure the data is synced after writing the contents of this buffer.this flag is set when memory of the buffer is added/removed -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the BufferFlags classint
getValue()
Get the numeric value of this enumstatic BufferFlags
of
(int value) Create a new BufferFlags for the provided valuestatic BufferFlags
Returns the enum constant of this class with the specified name.static BufferFlags[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LIVE
the buffer is live data and should be discarded in the PAUSED state. -
DECODE_ONLY
the buffer contains data that should be dropped because it will be clipped against the segment boundaries or because it does not contain data that should be shown to the user. -
DISCONT
the buffer marks a data discontinuity in the stream. This typically occurs after a seek or a dropped buffer from a live or network source. -
RESYNC
the buffer timestamps might have a discontinuity and this buffer is a good point to resynchronize. -
CORRUPTED
the buffer data is corrupted. -
MARKER
the buffer contains a media specific marker. for video this is the end of a frame boundary, for audio this is the start of a talkspurt. for RTP packets this matches the marker flag in the RTP packet header. -
HEADER
the buffer contains header information that is needed to decode the following data. -
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). -
DROPPABLE
the buffer can be dropped without breaking the stream, for example to reduce bandwidth. -
DELTA_UNIT
this unit cannot be decoded independently. -
TAG_MEMORY
this flag is set when memory of the buffer is added/removed -
SYNC_AFTER
Elements which write to disk or permanent storage should ensure the data is synced after writing the contents of this buffer. -
NON_DROPPABLE
This buffer is important and should not be dropped.This can be used to mark important buffers, e.g. to flag RTP packets carrying keyframes or codec setup data for RTP Forward Error Correction purposes, or to prevent still video frames from being dropped by elements due to QoS.
-
LAST
additional media specific flags can be added starting from this flag.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
Create a new BufferFlags for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-