Package org.freedesktop.gstreamer.gst
Interface PadProbeCallback
- 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("io.github.jwharm.JavaGI")
public interface PadProbeCallback
extends FunctionPointer
Functional interface declaration of the
PadProbeCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionrun
(Pad pad, PadProbeInfo info) Callback used by gst_pad_add_probe().default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default int
upcall
(MemorySegment pad, MemorySegment info, MemorySegment userData) Theupcall
method is called from native code.
-
Method Details
-
run
Callback used by gst_pad_add_probe(). Gets called to notify about the current blocking type.The callback is allowed to modify the data pointer in
info
. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.freedesktop.gstreamer.gst.Pad, org.freedesktop.gstreamer.gst.PadProbeInfo)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-