Package org.freedesktop.gstreamer.base
Interface TypeFindHelperGetRangeFunction
- 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 TypeFindHelperGetRangeFunction
extends FunctionPointer
Functional interface declaration of the
TypeFindHelperGetRangeFunction
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThis function will be called by gst_type_find_helper_get_range() when typefinding functions request to peek at the data of a stream at certain offsets.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, long, int, java.lang.foreign.MemorySegment)
method.default int
upcall
(MemorySegment obj, MemorySegment parent, long offset, int length, MemorySegment buffer) Theupcall
method is called from native code.
-
Method Details
-
run
FlowReturn run(GstObject obj, @Nullable @Nullable GstObject parent, long offset, int length, Out<Buffer> buffer) This function will be called by gst_type_find_helper_get_range() when typefinding functions request to peek at the data of a stream at certain offsets. If this function returns GST_FLOW_OK, the result buffer will be stored inbuffer
. The contents ofbuffer
is invalid for any other return value.This function is supposed to behave exactly like a
GstPadGetRangeFunction
. -
upcall
default int upcall(MemorySegment obj, MemorySegment parent, long offset, int length, MemorySegment buffer) Theupcall
method is called from native code. The parameters are marshaled andrun(org.freedesktop.gstreamer.gst.GstObject, org.freedesktop.gstreamer.gst.GstObject, long, int, io.github.jwharm.javagi.base.Out<org.freedesktop.gstreamer.gst.Buffer>)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, long, int, 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
-