Package org.freedesktop.gstreamer.app
Class AppSinkCallbacks
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.app.AppSinkCallbacks
- All Implemented Interfaces:
Proxy
A set of callbacks that can be installed on the appsink with
gst_app_sink_set_callbacks().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFunctional interface declaration of theEosCallbackcallback.static interfaceFunctional interface declaration of theNewEventCallbackcallback.static interfaceFunctional interface declaration of theNewPrerollCallbackcallback.static interfaceFunctional interface declaration of theNewSampleCallbackcallback.static interfaceFunctional interface declaration of theProposeAllocationCallbackcallback. -
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new AppSinkCallbacks.AppSinkCallbacks(Arena arena) Allocate a new AppSinkCallbacks.AppSinkCallbacks(MemorySegment address) Create a AppSinkCallbacks proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.voidoverrideEos(AppSinkCallbacks.EosCallback eos, Arena _arena) Write a value in the fieldeos.voidoverrideNewEvent(AppSinkCallbacks.NewEventCallback newEvent, Arena _arena) Write a value in the fieldnew_event.voidoverrideNewPreroll(AppSinkCallbacks.NewPrerollCallback newPreroll, Arena _arena) Write a value in the fieldnew_preroll.voidoverrideNewSample(AppSinkCallbacks.NewSampleCallback newSample, Arena _arena) Write a value in the fieldnew_sample.voidoverrideProposeAllocation(AppSinkCallbacks.ProposeAllocationCallback proposeAllocation, Arena _arena) Write a value in the fieldpropose_allocation.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AppSinkCallbacks
Create a AppSinkCallbacks proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
AppSinkCallbacks
Allocate a new AppSinkCallbacks.- Parameters:
arena- to control the memory allocation scope
-
AppSinkCallbacks
public AppSinkCallbacks()Allocate a new AppSinkCallbacks. The memory is allocated withArena.ofAuto().
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
overrideEos
Write a value in the fieldeos.- Parameters:
eos- The new value for the fieldeos_arena- to control the memory allocation scope
-
overrideNewPreroll
Write a value in the fieldnew_preroll.- Parameters:
newPreroll- The new value for the fieldnew_preroll_arena- to control the memory allocation scope
-
overrideNewSample
Write a value in the fieldnew_sample.- Parameters:
newSample- The new value for the fieldnew_sample_arena- to control the memory allocation scope
-
overrideNewEvent
Write a value in the fieldnew_event.- Parameters:
newEvent- The new value for the fieldnew_event_arena- to control the memory allocation scope
-
overrideProposeAllocation
public void overrideProposeAllocation(AppSinkCallbacks.ProposeAllocationCallback proposeAllocation, Arena _arena) Write a value in the fieldpropose_allocation.- Parameters:
proposeAllocation- The new value for the fieldpropose_allocation_arena- to control the memory allocation scope
-