Interface PadActivateModeFunction

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 PadActivateModeFunction extends FunctionPointer

Functional interface declaration of the PadActivateModeFunction callback.

See Also:
  • Method Details

    • run

      boolean run(Pad pad, GstObject parent, PadMode mode, boolean active)
      The prototype of the push and pull activate functions.
      Parameters:
      pad - a GstPad
      parent - the parent of pad
      mode - the requested activation mode of pad
      active - activate or deactivate the pad.
      Returns:
      true if the pad could be activated or deactivated.
    • upcall

      default int upcall(MemorySegment pad, MemorySegment parent, int mode, int active)
      The upcall method is called from native code. The parameters are marshaled and run(Pad, GstObject, PadMode, boolean) is executed.
    • toCallback

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