Package org.freedesktop.gstreamer.gst
Enum Class PadLinkCheck
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<PadLinkCheck>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum PadLinkCheck
extends Enum<PadLinkCheck>
implements Enumeration
The amount of checking to be done when linking pads.
GSTPADLINKCHECKCAPS
and GSTPADLINKCHECKTEMPLATECAPS
are mutually exclusive. If both are
specified, expensive but safe GSTPADLINKCHECKCAPS
are performed.
Only disable some of the checks if you are 100% certain you know the link
will not fail because of hierarchy/caps compatibility failures. If uncertain,
use the default checks (DEFAULT
) or the regular methods
for linking the pads.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCheck if the pads are compatible by comparing the caps returned by gst_pad_query_caps().The default checks done when linking pads (i.e.Check the pads have same parents/grandparents.Disables pushing a reconfigure event when pads are linked.Don't check hierarchy or caps compatibility.Check if the pads are compatible by using their template caps. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the PadLinkCheck classint
getValue()
Get the numeric value of this enumstatic PadLinkCheck
of
(int value) Create a new PadLinkCheck for the provided valuestatic PadLinkCheck
Returns the enum constant of this class with the specified name.static PadLinkCheck[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOTHING
Don't check hierarchy or caps compatibility. -
HIERARCHY
Check the pads have same parents/grandparents. Could be omitted if it is already known that the two elements that own the pads are in the same bin. -
TEMPLATE_CAPS
Check if the pads are compatible by using their template caps. This is much faster thanGSTPADLINKCHECKCAPS
, but would be unsafe e.g. if one pad hasGST_CAPS_ANY
. -
CAPS
Check if the pads are compatible by comparing the caps returned by gst_pad_query_caps(). -
NO_RECONFIGURE
Disables pushing a reconfigure event when pads are linked. -
DEFAULT
The default checks done when linking pads (i.e. the ones used by gst_pad_link()).
-
-
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 PadLinkCheck 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
-