Interface CapsFilterMapFunc

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 CapsFilterMapFunc extends FunctionPointer

Functional interface declaration of the CapsFilterMapFunc callback.

See Also:
  • Method Details

    • run

      boolean run(CapsFeatures features, Structure structure)
      A function that will be called in gst_caps_filter_and_map_in_place(). The function may modify features and structure, and both will be removed from the caps if false is returned.
      Parameters:
      features - the GstCapsFeatures
      structure - the GstStructure
      Returns:
      true if the features and structure should be preserved, false if it should be removed.
    • upcall

      default int upcall(MemorySegment features, MemorySegment structure, MemorySegment userData)
      The upcall method is called from native code. The parameters are marshaled and run(CapsFeatures, 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