Package org.freedesktop.gstreamer.gst
Interface Bin.DoLatencyCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
Bin
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface declaration of the
DoLatencyCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
run()
Will be emitted when the bin needs to perform latency calculations.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment)
method.default int
upcall
(MemorySegment sourceBin) Theupcall
method is called from native code.
-
Method Details
-
run
boolean run()Will be emitted when the bin needs to perform latency calculations. This signal is only emitted for toplevel bins or whenGstBin
:async-handling is enabled.Only one signal handler is invoked. If no signals are connected, the default handler is invoked, which will query and distribute the lowest possible latency to all sinks.
Connect to this signal if the default latency calculations are not sufficient, like when you need different latencies for different sinks in the same pipeline.
-
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun()
is executed. -
toCallback
Creates a native function pointer to theupcall(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
-