Interface AllocationMetaParamsAggregator

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("org.javagi.JavaGI") public interface AllocationMetaParamsAggregator extends FunctionPointer

Functional interface declaration of the AllocationMetaParamsAggregator callback.

See Also:
  • Method Details

    • run

      boolean run(Structure[] aggregatedParams, Structure params0, Structure params1)
      The aggregator function will combine the parameters from params0 and param1 and write the result back into aggregatedParams.
      Parameters:
      aggregatedParams - This structure will be updated with the combined parameters from both params0 and params1.
      params0 - a GstStructure containing the new parameters to be aggregated.
      params1 - a GstStructure containing the new parameters to be aggregated.
      Returns:
      true if the parameters were successfully aggregated, false otherwise.
      Since:
      1.26
    • upcall

      default int upcall(MemorySegment aggregatedParams, MemorySegment params0, MemorySegment params1)
      The upcall method is called from native code. The parameters are marshaled and run(Structure[], Structure, Structure) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Creates a native function pointer to the upcall(MemorySegment, MemorySegment, MemorySegment) method.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer