Class VideoFilter

All Implemented Interfaces:
Proxy
Direct Known Subclasses:
VideoFilter.VideoFilter$Impl

@Generated("org.javagi.JavaGI") public abstract class VideoFilter extends BaseTransform

Provides useful functions and a base class for video filters.

The videofilter will by default enable QoS on the parent GstBaseTransform to implement frame dropping.

  • Constructor Details

    • VideoFilter

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

      public VideoFilter()
      Create a new VideoFilter.
  • Method Details

    • getType

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

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

      protected VideoFilter asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class BaseTransform
      Returns:
      the instance as if it were its parent type
    • setInfo

      protected boolean setInfo(Caps incaps, VideoInfo inInfo, Caps outcaps, VideoInfo outInfo)
      function to be called with the negotiated caps and video infos
    • transformFrame

      protected FlowReturn transformFrame(VideoFrame inframe, VideoFrame outframe)
      transform a video frame
    • transformFrameIp

      protected FlowReturn transformFrameIp(VideoFrame frame)
      transform a video frame in place