Class AllocationParams

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.AllocationParams
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class AllocationParams extends ProxyInstance
Parameters to control the allocation of memory
  • Constructor Details

    • AllocationParams

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

      public AllocationParams()

      Create a new GstAllocationParams on the heap. This function is for use in GStreamer language bindings. In your own code, you can just declare a GstAllocationParams on the stack or in a struct, and call gst_allocation_params_init() to initialize it.

      You do not need to call gst_allocation_params_init() on the instance returned by this function.

      Since:
      1.20
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the AllocationParams class.
      Returns:
      the GType
    • getMemoryLayout

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

      public Set<MemoryFlags> readFlags()
      Read the value of the field flags.
      Returns:
      The value of the field flags
    • writeFlags

      public void writeFlags(Set<MemoryFlags> flags)
      Write a value in the field flags.
      Parameters:
      flags - The new value for the field flags
    • readAlign

      public long readAlign()
      Read the value of the field align.
      Returns:
      The value of the field align
    • writeAlign

      public void writeAlign(long align)
      Write a value in the field align.
      Parameters:
      align - The new value for the field align
    • readPrefix

      public long readPrefix()
      Read the value of the field prefix.
      Returns:
      The value of the field prefix
    • writePrefix

      public void writePrefix(long prefix)
      Write a value in the field prefix.
      Parameters:
      prefix - The new value for the field prefix
    • copy

      public @Nullable AllocationParams copy()
      Create a copy of params.
      Returns:
      a new GstAllocationParams.
    • free

      public void free()
      Free this AllocationParams
    • init

      public void init()
      Initialize this AllocationParams to its default values