Enum Class PadLinkCheck

java.lang.Object
java.lang.Enum<PadLinkCheck>
org.freedesktop.gstreamer.gst.PadLinkCheck
All Implemented Interfaces:
Serializable, Comparable<PadLinkCheck>, Constable, Enumeration

@Generated("org.javagi.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.

  • Enum Constant Details

    • NOTHING

      public static final PadLinkCheck NOTHING
      Don't check hierarchy or caps compatibility.
    • HIERARCHY

      public static final PadLinkCheck 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

      public static final PadLinkCheck TEMPLATE_CAPS
      Check if the pads are compatible by using their template caps. This is much faster than GSTPADLINKCHECKCAPS, but would be unsafe e.g. if one pad has GST_CAPS_ANY.
    • CAPS

      public static final PadLinkCheck CAPS
      Check if the pads are compatible by comparing the caps returned by gst_pad_query_caps().
    • NO_RECONFIGURE

      public static final PadLinkCheck NO_RECONFIGURE
      Disables pushing a reconfigure event when pads are linked.
    • DEFAULT

      public static final PadLinkCheck DEFAULT
      The default checks done when linking pads (i.e. the ones used by gst_pad_link()).
  • Method Details

    • values

      public static PadLinkCheck[] 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

      public static PadLinkCheck valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<PadLinkCheck> of(int flags)
      Create a new EnumSet<PadLinkCheck> for the provided bitfield
      Parameters:
      flags - the PadLinkCheck bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<PadLinkCheck> of(MemorySegment address)
      Create a new EnumSet<PadLinkCheck> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the PadLinkCheck class.
      Returns:
      the GType