Package org.freedesktop.gstreamer.app
Class AppSrcCallbacks
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.app.AppSrcCallbacks
- All Implemented Interfaces:
Proxy
A set of callbacks that can be installed on the appsrc with
gst_app_src_set_callbacks().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFunctional interface declaration of theEnoughDataCallbackcallback.static interfaceFunctional interface declaration of theNeedDataCallbackcallback.static interfaceFunctional interface declaration of theSeekDataCallbackcallback. -
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new AppSrcCallbacks.AppSrcCallbacks(Arena arena) Allocate a new AppSrcCallbacks.AppSrcCallbacks(MemorySegment address) Create a AppSrcCallbacks proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.voidoverrideEnoughData(AppSrcCallbacks.EnoughDataCallback enoughData, Arena _arena) Write a value in the fieldenough_data.voidoverrideNeedData(AppSrcCallbacks.NeedDataCallback needData, Arena _arena) Write a value in the fieldneed_data.voidoverrideSeekData(AppSrcCallbacks.SeekDataCallback seekData, Arena _arena) Write a value in the fieldseek_data.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AppSrcCallbacks
Create a AppSrcCallbacks proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
AppSrcCallbacks
Allocate a new AppSrcCallbacks.- Parameters:
arena- to control the memory allocation scope
-
AppSrcCallbacks
public AppSrcCallbacks()Allocate a new AppSrcCallbacks. The memory is allocated withArena.ofAuto().
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
overrideNeedData
Write a value in the fieldneed_data.- Parameters:
needData- The new value for the fieldneed_data_arena- to control the memory allocation scope
-
overrideEnoughData
Write a value in the fieldenough_data.- Parameters:
enoughData- The new value for the fieldenough_data_arena- to control the memory allocation scope
-
overrideSeekData
Write a value in the fieldseek_data.- Parameters:
seekData- The new value for the fieldseek_data_arena- to control the memory allocation scope
-