Class VideoAggregatorPad

All Implemented Interfaces:
Proxy
Direct Known Subclasses:
VideoAggregatorConvertPad

@Generated("org.javagi.JavaGI") public class VideoAggregatorPad extends AggregatorPad
  • Constructor Details

    • VideoAggregatorPad

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

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

    • getType

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

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

      protected VideoAggregatorPad 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 AggregatorPad
      Returns:
      the instance as if it were its parent type
    • getCurrentBuffer

      public Buffer getCurrentBuffer()

      Returns the currently queued buffer that is going to be used for the current output frame.

      This must only be called from the GstVideoAggregatorClass::aggregate_frames virtual method, or from the GstVideoAggregatorPadClass::prepare_frame virtual method of the aggregator pads.

      The return value is only valid until GstVideoAggregatorClass::aggregate_frames or GstVideoAggregatorPadClass::prepare_frame returns.

      Returns:
      The currently queued buffer
    • getPreparedFrame

      public VideoFrame getPreparedFrame()

      Returns the currently prepared video frame that has to be aggregated into the current output frame.

      This must only be called from the GstVideoAggregatorClass::aggregate_frames virtual method, or from the GstVideoAggregatorPadClass::prepare_frame virtual method of the aggregator pads.

      The return value is only valid until GstVideoAggregatorClass::aggregate_frames or GstVideoAggregatorPadClass::prepare_frame returns.

      Returns:
      The currently prepared video frame
    • hasCurrentBuffer

      public boolean hasCurrentBuffer()

      Checks if the pad currently has a buffer queued that is going to be used for the current output frame.

      This must only be called from the GstVideoAggregatorClass::aggregate_frames virtual method, or from the GstVideoAggregatorPadClass::prepare_frame virtual method of the aggregator pads.

      Returns:
      true if the pad has currently a buffer queued
    • setNeedsAlpha

      public void setNeedsAlpha(boolean needsAlpha)
      Allows selecting that this pad requires an output format with alpha
      Parameters:
      needsAlpha - true if this pad requires alpha output
    • cleanFrame

      protected void cleanFrame(VideoAggregator videoaggregator, VideoFrame preparedFrame)
      clean the frame previously prepared in prepare_frame
    • prepareFrame

      protected boolean prepareFrame(VideoAggregator videoaggregator, Buffer buffer, VideoFrame preparedFrame)
      Prepare the frame from the pad buffer and sets it to prepared_frame. Implementations should always return TRUE. Returning FALSE will cease iteration over subsequent pads.
    • prepareFrameFinish

      protected void prepareFrameFinish(VideoAggregator videoaggregator, VideoFrame preparedFrame)

      Finish preparing preparedFrame.

      If overriden, prepare_frame_start must also be overriden.

      Parameters:
      videoaggregator - the parent GstVideoAggregator
      preparedFrame - the GstVideoFrame to prepare into
      Since:
      1.20
    • prepareFrameStart

      protected void prepareFrameStart(VideoAggregator videoaggregator, Buffer buffer, VideoFrame preparedFrame)

      Begin preparing the frame from the pad buffer and sets it to prepared_frame.

      If overriden, prepare_frame_finish must also be overriden.

      Parameters:
      videoaggregator - the parent GstVideoAggregator
      buffer - the input GstBuffer to prepare
      preparedFrame - the GstVideoFrame to prepare into
      Since:
      1.20
    • updateConversionInfo

      protected void updateConversionInfo()
      Called when either the input or output formats have changed.
    • builder

      public static VideoAggregatorPad.Builder<? extends VideoAggregatorPad.Builder> builder()
      A VideoAggregatorPad.Builder object constructs a VideoAggregatorPad with the specified properties. Use the various set...() methods to set properties, and finish construction with VideoAggregatorPad.Builder.build().
      Returns:
      the builder object