Package org.freedesktop.gstreamer.gst
Enum Class TagMergeMode
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<TagMergeMode>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum TagMergeMode
extends Enum<TagMergeMode>
implements Enumeration
The different tag merging modes are basically replace, overwrite and append,
but they can be seen from two directions. Given two taglists: (A) the tags
already in the element and (B) the ones that are supplied to the element (
e.g. via gst_tag_setter_merge_tags() / gst_tag_setter_add_tags() or a
EventType.TAG
), how are these tags merged?
In the table below this is shown for the cases that a tag exists in the list
(A) or does not exists (!A) and combinations thereof.
| merge mode | A + B | A + !B | !A + B | !A + !B | | ----------- | ----- | ------ | ------ | ------- | | REPLACE_ALL | B | ø | B | ø | | REPLACE | B | A | B | ø | | APPEND | A, B | A | B | ø | | PREPEND | B, A | A | B | ø | | KEEP | A | A | B | ø | | KEEP_ALL | A | A | ø | ø |
-
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 Type
getType()
Get the GType of the TagMergeMode classint
getValue()
Get the numeric value of this enumstatic TagMergeMode
of
(int value) Create a new TagMergeMode for the provided valuestatic TagMergeMode
Returns the enum constant of this class with the specified name.static TagMergeMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
undefined merge mode -
REPLACE_ALL
replace all tags (clear list and append) -
REPLACE
replace tags -
APPEND
append tags -
PREPEND
prepend tags -
KEEP
keep existing tags -
KEEP_ALL
keep all existing tags -
COUNT
the number of merge modes
-
-
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 TagMergeMode 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
-