Class ProxyPad

All Implemented Interfaces:
Proxy
Direct Known Subclasses:
GhostPad

@Generated("org.javagi.JavaGI") public class ProxyPad extends Pad
  • Constructor Details

    • ProxyPad

      public ProxyPad(MemorySegment address)
      Create a ProxyPad instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • ProxyPad

      public ProxyPad()
      Create a new ProxyPad.
  • Method Details

    • getType

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

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected ProxyPad asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Pad
      Returns:
      the instance as if it were its parent type
    • chainDefault

      public static FlowReturn chainDefault(Pad pad, @Nullable GstObject parent, Buffer buffer)
      Invoke the default chain function of the proxy pad.
      Parameters:
      pad - a sink GstPad, returns GST_FLOW_ERROR if not.
      parent - the parent of pad or null
      buffer - the GstBuffer to send, return GST_FLOW_ERROR if not.
      Returns:
      a GstFlowReturn from the pad.
    • chainListDefault

      public static FlowReturn chainListDefault(Pad pad, @Nullable GstObject parent, BufferList list)
      Invoke the default chain list function of the proxy pad.
      Parameters:
      pad - a sink GstPad, returns GST_FLOW_ERROR if not.
      parent - the parent of pad or null
      list - the GstBufferList to send, return GST_FLOW_ERROR if not.
      Returns:
      a GstFlowReturn from the pad.
    • getrangeDefault

      public static FlowReturn getrangeDefault(Pad pad, GstObject parent, long offset, int size, Out<Buffer> buffer)
      Invoke the default getrange function of the proxy pad.
      Parameters:
      pad - a src GstPad, returns GST_FLOW_ERROR if not.
      parent - the parent of pad
      offset - The start offset of the buffer
      size - The length of the buffer
      buffer - a pointer to hold the GstBuffer, returns GST_FLOW_ERROR if null.
      Returns:
      a GstFlowReturn from the pad.
    • iterateInternalLinksDefault

      public static @Nullable Iterator iterateInternalLinksDefault(Pad pad, @Nullable GstObject parent)
      Invoke the default iterate internal links function of the proxy pad.
      Parameters:
      pad - the GstPad to get the internal links of.
      parent - the parent of pad or null
      Returns:
      a GstIterator of GstPad, or null if pad has no parent. Unref each returned pad with gst_object_unref().
    • getInternal

      public @Nullable ProxyPad getInternal()

      Get the internal pad of pad. Unref target pad after usage.

      The internal pad of a GstGhostPad is the internally used pad of opposite direction, which is used to link to the target.

      Returns:
      the target GstProxyPad, can be null. Unref target pad after usage.
    • builder

      public static ProxyPad.Builder<? extends ProxyPad.Builder> builder()
      A ProxyPad.Builder object constructs a ProxyPad with the specified properties. Use the various set...() methods to set properties, and finish construction with ProxyPad.Builder.build().
      Returns:
      the builder object