Package org.freedesktop.gstreamer.video
Class VideoAlignment
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoAlignment
- All Implemented Interfaces:
Proxy
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 Summary
ConstructorsConstructorDescriptionAllocate a new VideoAlignment.VideoAlignment(int paddingTop, int paddingBottom, int paddingLeft, int paddingRight, int[] strideAlign) Allocate a new VideoAlignment with the fields set to the provided values.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.VideoAlignment(Arena arena) Allocate a new VideoAlignment.VideoAlignment(MemorySegment address) Create a VideoAlignment proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.intRead the value of the fieldpadding_bottom.intRead the value of the fieldpadding_left.intRead the value of the fieldpadding_right.intRead the value of the fieldpadding_top.@org.jspecify.annotations.Nullable int @Nullable []Read the value of the fieldstride_align.voidreset()Set this VideoAlignment to its default values with no padding and no alignment.voidwritePaddingBottom(int paddingBottom) Write a value in the fieldpadding_bottom.voidwritePaddingLeft(int paddingLeft) Write a value in the fieldpadding_left.voidwritePaddingRight(int paddingRight) Write a value in the fieldpadding_right.voidwritePaddingTop(int paddingTop) Write a value in the fieldpadding_top.voidwriteStrideAlign(@org.jspecify.annotations.Nullable int @Nullable [] strideAlign, Arena _arena) Write a value in the fieldstride_align.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoAlignment
Create a VideoAlignment proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
VideoAlignment
Allocate a new VideoAlignment.- Parameters:
arena- to control the memory allocation scope
-
VideoAlignment
public VideoAlignment()Allocate a new VideoAlignment. The memory is allocated withArena.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 fieldpaddingToppaddingBottom- value for the fieldpaddingBottompaddingLeft- value for the fieldpaddingLeftpaddingRight- value for the fieldpaddingRightstrideAlign- value for the fieldstrideAlignarena- 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 withArena.ofAuto().- Parameters:
paddingTop- value for the fieldpaddingToppaddingBottom- value for the fieldpaddingBottompaddingLeft- value for the fieldpaddingLeftpaddingRight- value for the fieldpaddingRightstrideAlign- value for the fieldstrideAlign
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readPaddingTop
public int readPaddingTop()Read the value of the fieldpadding_top.- Returns:
- The value of the field
padding_top
-
writePaddingTop
public void writePaddingTop(int paddingTop) Write a value in the fieldpadding_top.- Parameters:
paddingTop- The new value for the fieldpadding_top
-
readPaddingBottom
public int readPaddingBottom()Read the value of the fieldpadding_bottom.- Returns:
- The value of the field
padding_bottom
-
writePaddingBottom
public void writePaddingBottom(int paddingBottom) Write a value in the fieldpadding_bottom.- Parameters:
paddingBottom- The new value for the fieldpadding_bottom
-
readPaddingLeft
public int readPaddingLeft()Read the value of the fieldpadding_left.- Returns:
- The value of the field
padding_left
-
writePaddingLeft
public void writePaddingLeft(int paddingLeft) Write a value in the fieldpadding_left.- Parameters:
paddingLeft- The new value for the fieldpadding_left
-
readPaddingRight
public int readPaddingRight()Read the value of the fieldpadding_right.- Returns:
- The value of the field
padding_right
-
writePaddingRight
public void writePaddingRight(int paddingRight) Write a value in the fieldpadding_right.- Parameters:
paddingRight- The new value for the fieldpadding_right
-
readStrideAlign
public @org.jspecify.annotations.Nullable int @Nullable [] readStrideAlign()Read the value of the fieldstride_align.- Returns:
- The value of the field
stride_align
-
writeStrideAlign
public void writeStrideAlign(@org.jspecify.annotations.Nullable int @Nullable [] strideAlign, Arena _arena) Write a value in the fieldstride_align.- Parameters:
strideAlign- The new value for the fieldstride_align
-
reset
public void reset()Set this VideoAlignment to its default values with no padding and no alignment.
-