Interface ElementForeachPadFunc

All Superinterfaces:
FunctionPointer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @Generated("org.javagi.JavaGI") public interface ElementForeachPadFunc extends FunctionPointer

Functional interface declaration of the ElementForeachPadFunc callback.

See Also:
  • Method Details

    • run

      boolean run(Element element, Pad pad)
      Function called for each pad when using gst_element_foreach_sink_pad(), gst_element_foreach_src_pad(), or gst_element_foreach_pad().
      Parameters:
      element - the GstElement
      pad - a GstPad
      Returns:
      false to stop iterating pads, true to continue
      Since:
      1.14
    • upcall

      default int upcall(MemorySegment element, MemorySegment pad, MemorySegment userData)
      The upcall method is called from native code. The parameters are marshaled and run(Element, Pad) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Creates a native function pointer to the upcall(MemorySegment, MemorySegment, MemorySegment) method.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer