Class AppSinkCallbacks

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.app.AppSinkCallbacks
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class AppSinkCallbacks extends ProxyInstance
A set of callbacks that can be installed on the appsink with gst_app_sink_set_callbacks().
  • Constructor Details

    • AppSinkCallbacks

      public AppSinkCallbacks(MemorySegment address)
      Create a AppSinkCallbacks proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • AppSinkCallbacks

      public AppSinkCallbacks(Arena arena)
      Allocate a new AppSinkCallbacks.
      Parameters:
      arena - to control the memory allocation scope
    • AppSinkCallbacks

      public AppSinkCallbacks()
      Allocate a new AppSinkCallbacks. The memory is allocated with Arena.ofAuto().
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • overrideEos

      public void overrideEos(AppSinkCallbacks.EosCallback eos, Arena _arena)
      Write a value in the field eos.
      Parameters:
      eos - The new value for the field eos
      _arena - to control the memory allocation scope
    • overrideNewPreroll

      public void overrideNewPreroll(AppSinkCallbacks.NewPrerollCallback newPreroll, Arena _arena)
      Write a value in the field new_preroll.
      Parameters:
      newPreroll - The new value for the field new_preroll
      _arena - to control the memory allocation scope
    • overrideNewSample

      public void overrideNewSample(AppSinkCallbacks.NewSampleCallback newSample, Arena _arena)
      Write a value in the field new_sample.
      Parameters:
      newSample - The new value for the field new_sample
      _arena - to control the memory allocation scope
    • overrideNewEvent

      public void overrideNewEvent(AppSinkCallbacks.NewEventCallback newEvent, Arena _arena)
      Write a value in the field new_event.
      Parameters:
      newEvent - The new value for the field new_event
      _arena - to control the memory allocation scope
    • overrideProposeAllocation

      public void overrideProposeAllocation(AppSinkCallbacks.ProposeAllocationCallback proposeAllocation, Arena _arena)
      Write a value in the field propose_allocation.
      Parameters:
      proposeAllocation - The new value for the field propose_allocation
      _arena - to control the memory allocation scope