Package org.freedesktop.gstreamer.video
Class VideoAlignment
java.lang.Object
io.github.jwharm.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
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.int
Read the value of the fieldpadding_bottom
.int
Read the value of the fieldpadding_left
.int
Read the value of the fieldpadding_right
.int
Read the value of the fieldpadding_top
.int[]
Read the value of the fieldstride_align
.void
reset()
Set this VideoAlignment to its default values with no padding and no alignment.void
writePaddingBottom
(int paddingBottom) Write a value in the fieldpadding_bottom
.void
writePaddingLeft
(int paddingLeft) Write a value in the fieldpadding_left
.void
writePaddingRight
(int paddingRight) Write a value in the fieldpadding_right
.void
writePaddingTop
(int paddingTop) Write a value in the fieldpadding_top
.void
writeStrideAlign
(int[] strideAlign, Arena _arena) Write a value in the fieldstride_align
.Methods inherited from class io.github.jwharm.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 fieldpaddingTop
paddingBottom
- value for the fieldpaddingBottom
paddingLeft
- value for the fieldpaddingLeft
paddingRight
- value for the fieldpaddingRight
strideAlign
- value for the fieldstrideAlign
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 withArena.ofAuto()
.- Parameters:
paddingTop
- value for the fieldpaddingTop
paddingBottom
- value for the fieldpaddingBottom
paddingLeft
- value for the fieldpaddingLeft
paddingRight
- value for the fieldpaddingRight
strideAlign
- 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 int[] readStrideAlign()Read the value of the fieldstride_align
.- Returns:
- The value of the field
stride_align
-
writeStrideAlign
Write a value in the fieldstride_align
.- Parameters:
strideAlign
- The new value for the fieldstride_align
_arena
- to control the memory allocation scope
-
reset
public void reset()Set this VideoAlignment to its default values with no padding and no alignment.
-