Class VideoAlignment

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoAlignment
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class VideoAlignment extends ProxyInstance
Extra alignment parameters for the memory of video buffers. This structure is usually used to configure the bufferpool if it supports the GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT.
  • Constructor Details

    • VideoAlignment

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

      public VideoAlignment(Arena arena)
      Allocate a new VideoAlignment.
      Parameters:
      arena - to control the memory allocation scope
    • VideoAlignment

      public VideoAlignment()
      Allocate a new VideoAlignment. The memory is allocated with Arena.ofAuto().
    • VideoAlignment

      public VideoAlignment(int paddingTop, int paddingBottom, int paddingLeft, int paddingRight, int[] strideAlign, Arena arena)
      Allocate a new VideoAlignment with the fields set to the provided values.
      Parameters:
      paddingTop - value for the field paddingTop
      paddingBottom - value for the field paddingBottom
      paddingLeft - value for the field paddingLeft
      paddingRight - value for the field paddingRight
      strideAlign - value for the field strideAlign
      arena - to control the memory allocation scope
    • VideoAlignment

      public VideoAlignment(int paddingTop, int paddingBottom, int paddingLeft, int paddingRight, int[] strideAlign)
      Allocate a new VideoAlignment with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      paddingTop - value for the field paddingTop
      paddingBottom - value for the field paddingBottom
      paddingLeft - value for the field paddingLeft
      paddingRight - value for the field paddingRight
      strideAlign - value for the field strideAlign
  • Method Details

    • getMemoryLayout

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

      public int readPaddingTop()
      Read the value of the field padding_top.
      Returns:
      The value of the field padding_top
    • writePaddingTop

      public void writePaddingTop(int paddingTop)
      Write a value in the field padding_top.
      Parameters:
      paddingTop - The new value for the field padding_top
    • readPaddingBottom

      public int readPaddingBottom()
      Read the value of the field padding_bottom.
      Returns:
      The value of the field padding_bottom
    • writePaddingBottom

      public void writePaddingBottom(int paddingBottom)
      Write a value in the field padding_bottom.
      Parameters:
      paddingBottom - The new value for the field padding_bottom
    • readPaddingLeft

      public int readPaddingLeft()
      Read the value of the field padding_left.
      Returns:
      The value of the field padding_left
    • writePaddingLeft

      public void writePaddingLeft(int paddingLeft)
      Write a value in the field padding_left.
      Parameters:
      paddingLeft - The new value for the field padding_left
    • readPaddingRight

      public int readPaddingRight()
      Read the value of the field padding_right.
      Returns:
      The value of the field padding_right
    • writePaddingRight

      public void writePaddingRight(int paddingRight)
      Write a value in the field padding_right.
      Parameters:
      paddingRight - The new value for the field padding_right
    • readStrideAlign

      public @Nullable int @Nullable [] readStrideAlign()
      Read the value of the field stride_align.
      Returns:
      The value of the field stride_align
    • writeStrideAlign

      public void writeStrideAlign(@Nullable int @Nullable [] strideAlign, Arena _arena)
      Write a value in the field stride_align.
      Parameters:
      strideAlign - The new value for the field stride_align
    • reset

      public void reset()
      Set this VideoAlignment to its default values with no padding and no alignment.