Package org.freedesktop.gstreamer.video
Class VideoResampler
java.lang.Object
org.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.- Since:
- 1.6
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 TypeMethodDescriptionvoidclear()Clear a previously initializedGstVideoResamplerresampler.static MemoryLayoutThe memory layout of the native struct.booleaninit(VideoResamplerMethod method, Set<VideoResamplerFlags> flags, int nPhases, int nTaps, double shift, int inSize, int outSize, Structure options) booleaninit(VideoResamplerMethod method, VideoResamplerFlags flags, int nPhases, int nTaps, double shift, int inSize, int outSize, Structure options) intRead the value of the fieldin_size.intRead the value of the fieldmax_taps.intRead the value of the fieldn_phases.Read the value of the fieldn_taps.Read the value of the fieldoffset.intRead the value of the fieldout_size.Read the value of the fieldphase.readTaps()Read the value of the fieldtaps.voidwriteInSize(int inSize) Write a value in the fieldin_size.voidwriteMaxTaps(int maxTaps) Write a value in the fieldmax_taps.voidwriteNPhases(int nPhases) Write a value in the fieldn_phases.voidwriteNTaps(MemorySegment nTaps) Write a value in the fieldn_taps.voidwriteOffset(MemorySegment offset) Write a value in the fieldoffset.voidwriteOutSize(int outSize) Write a value in the fieldout_size.voidwritePhase(MemorySegment phase) Write a value in the fieldphase.voidwriteTaps(MemorySegment taps) Write a value in the fieldtaps.Methods inherited from class org.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 fieldinSizeoutSize- value for the fieldoutSizemaxTaps- value for the fieldmaxTapsnPhases- value for the fieldnPhasesoffset- value for the fieldoffsetphase- value for the fieldphasenTaps- value for the fieldnTapstaps- value for the fieldtapsarena- 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 fieldinSizeoutSize- value for the fieldoutSizemaxTaps- value for the fieldmaxTapsnPhases- value for the fieldnPhasesoffset- value for the fieldoffsetphase- value for the fieldphasenTaps- value for the fieldnTapstaps- 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 initializedGstVideoResamplerresampler.- Since:
- 1.6
-
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)
-