Package org.freedesktop.gstreamer.gst
Enum Class Format
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<Format>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum Format
extends Enum<Format>
implements Enumeration
Standard predefined formats
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Format
Return the format registered with the given nick.Get details about the given format.getName()
Get a printable name for the given format.static Type
getType()
Get the GType of the Format classint
getValue()
Get the numeric value of this enumstatic Iterator
Iterate all the registered formats.static Format
of
(int value) Create a new Format for the provided valuestatic Format
Create a new GstFormat based on the nick or return an already registered format with that nick.toQuark()
Get the unique quark for the given format.static Format
Returns the enum constant of this class with the specified name.static Format[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
undefined format -
DEFAULT
the default format of the pad/element. This can be samples for raw audio, frames/fields for raw video (some, but not all, elements support this; useGSTFORMATTIME
if you don't have a good reason to query for samples/frames) -
BYTES
bytes -
TIME
time in nanoseconds -
BUFFERS
buffers (few, if any, elements implement this as of May 2009) -
PERCENT
percentage of stream (few, if any, elements implement this as of May 2009)
-
-
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 Format for the provided value- Parameters:
value
- the enum value- Returns:
- the enum 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
-
getByNick
-
iterateDefinitions
Iterate all the registered formats. The format definition is read only.- Returns:
- a GstIterator of
GstFormatDefinition
.
-
register
Create a new GstFormat based on the nick or return an already registered format with that nick.- Parameters:
nick
- The nick of the new formatdescription
- The description of the new format- Returns:
- A new GstFormat or an already registered format
with the same nick.
MT safe.
-
getDetails
Get details about the given format.- Returns:
- The
GstFormatDefinition
for this Format ornull
on failure.MT safe.
-
getName
Get a printable name for the given format. Do not modify or free.- Returns:
- a reference to the static name of the format
or
null
if the format is unknown.
-
toQuark
Get the unique quark for the given format.- Returns:
- the quark associated with the format or 0 if the format is unknown.
-