Package org.freedesktop.gstreamer.video
Class VideoResampler
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoResampler
- All Implemented Interfaces:
Proxy
GstVideoResampler
is a structure which holds the information
required to perform various kinds of resampling filtering.-
Constructor Summary
ConstructorDescriptionAllocate a new VideoResampler.VideoResampler
(int inSize, int outSize, int maxTaps, int nPhases, MemorySegment offset, MemorySegment phase, MemorySegment nTaps, MemorySegment taps) Allocate a new VideoResampler with the fields set to the provided values.VideoResampler
(int inSize, int outSize, int maxTaps, int nPhases, MemorySegment offset, MemorySegment phase, MemorySegment nTaps, MemorySegment taps, Arena arena) Allocate a new VideoResampler with the fields set to the provided values.VideoResampler
(Arena arena) Allocate a new VideoResampler.VideoResampler
(MemorySegment address) Create a VideoResampler proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear a previously initializedGstVideoResampler
this VideoResampler.static MemoryLayout
The memory layout of the native struct.boolean
init
(VideoResamplerMethod method, Set<VideoResamplerFlags> flags, int nPhases, int nTaps, double shift, int inSize, int outSize, Structure options) boolean
init
(VideoResamplerMethod method, VideoResamplerFlags flags, int nPhases, int nTaps, double shift, int inSize, int outSize, Structure options) int
Read the value of the fieldin_size
.int
Read the value of the fieldmax_taps
.int
Read the value of the fieldn_phases
.Read the value of the fieldn_taps
.Read the value of the fieldoffset
.int
Read the value of the fieldout_size
.Read the value of the fieldphase
.readTaps()
Read the value of the fieldtaps
.void
writeInSize
(int inSize) Write a value in the fieldin_size
.void
writeMaxTaps
(int maxTaps) Write a value in the fieldmax_taps
.void
writeNPhases
(int nPhases) Write a value in the fieldn_phases
.void
writeNTaps
(MemorySegment nTaps) Write a value in the fieldn_taps
.void
writeOffset
(MemorySegment offset) Write a value in the fieldoffset
.void
writeOutSize
(int outSize) Write a value in the fieldout_size
.void
writePhase
(MemorySegment phase) Write a value in the fieldphase
.void
writeTaps
(MemorySegment taps) Write a value in the fieldtaps
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoResampler
Create a VideoResampler proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
VideoResampler
Allocate a new VideoResampler.- Parameters:
arena
- to control the memory allocation scope
-
VideoResampler
public VideoResampler()Allocate a new VideoResampler. The memory is allocated withArena.ofAuto()
. -
VideoResampler
public VideoResampler(int inSize, int outSize, int maxTaps, int nPhases, MemorySegment offset, MemorySegment phase, MemorySegment nTaps, MemorySegment taps, Arena arena) Allocate a new VideoResampler with the fields set to the provided values.- Parameters:
inSize
- value for the fieldinSize
outSize
- value for the fieldoutSize
maxTaps
- value for the fieldmaxTaps
nPhases
- value for the fieldnPhases
offset
- value for the fieldoffset
phase
- value for the fieldphase
nTaps
- value for the fieldnTaps
taps
- value for the fieldtaps
arena
- to control the memory allocation scope
-
VideoResampler
public VideoResampler(int inSize, int outSize, int maxTaps, int nPhases, MemorySegment offset, MemorySegment phase, MemorySegment nTaps, MemorySegment taps) Allocate a new VideoResampler with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
inSize
- value for the fieldinSize
outSize
- value for the fieldoutSize
maxTaps
- value for the fieldmaxTaps
nPhases
- value for the fieldnPhases
offset
- value for the fieldoffset
phase
- value for the fieldphase
nTaps
- value for the fieldnTaps
taps
- value for the fieldtaps
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readInSize
public int readInSize()Read the value of the fieldin_size
.- Returns:
- The value of the field
in_size
-
writeInSize
public void writeInSize(int inSize) Write a value in the fieldin_size
.- Parameters:
inSize
- The new value for the fieldin_size
-
readOutSize
public int readOutSize()Read the value of the fieldout_size
.- Returns:
- The value of the field
out_size
-
writeOutSize
public void writeOutSize(int outSize) Write a value in the fieldout_size
.- Parameters:
outSize
- The new value for the fieldout_size
-
readMaxTaps
public int readMaxTaps()Read the value of the fieldmax_taps
.- Returns:
- The value of the field
max_taps
-
writeMaxTaps
public void writeMaxTaps(int maxTaps) Write a value in the fieldmax_taps
.- Parameters:
maxTaps
- The new value for the fieldmax_taps
-
readNPhases
public int readNPhases()Read the value of the fieldn_phases
.- Returns:
- The value of the field
n_phases
-
writeNPhases
public void writeNPhases(int nPhases) Write a value in the fieldn_phases
.- Parameters:
nPhases
- The new value for the fieldn_phases
-
readOffset
Read the value of the fieldoffset
.- Returns:
- The value of the field
offset
-
writeOffset
Write a value in the fieldoffset
.- Parameters:
offset
- The new value for the fieldoffset
-
readPhase
Read the value of the fieldphase
.- Returns:
- The value of the field
phase
-
writePhase
Write a value in the fieldphase
.- Parameters:
phase
- The new value for the fieldphase
-
readNTaps
Read the value of the fieldn_taps
.- Returns:
- The value of the field
n_taps
-
writeNTaps
Write a value in the fieldn_taps
.- Parameters:
nTaps
- The new value for the fieldn_taps
-
readTaps
Read the value of the fieldtaps
.- Returns:
- The value of the field
taps
-
writeTaps
Write a value in the fieldtaps
.- Parameters:
taps
- The new value for the fieldtaps
-
clear
public void clear()Clear a previously initializedGstVideoResampler
this VideoResampler. -
init
public boolean init(VideoResamplerMethod method, Set<VideoResamplerFlags> flags, int nPhases, int nTaps, double shift, int inSize, int outSize, Structure options) -
init
public boolean init(VideoResamplerMethod method, VideoResamplerFlags flags, int nPhases, int nTaps, double shift, int inSize, int outSize, Structure options)
-