Package org.freedesktop.gstreamer.video
Class VideoChromaResample
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoChromaResample
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorDescriptionVideoChromaResample
(MemorySegment address) Create a VideoChromaResample proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoid
free()
Free this VideoChromaResamplevoid
The resampler must be fednLines
at a time.static VideoChromaResample
new_
(VideoChromaMethod method, Set<VideoChromaSite> site, Set<VideoChromaFlags> flags, VideoFormat format, int hFactor, int vFactor) Create a new resampler object for the given parameters.static VideoChromaResample
new_
(VideoChromaMethod method, VideoChromaSite site, VideoChromaFlags flags, VideoFormat format, int hFactor, int vFactor) Create a new resampler object for the given parameters.void
videoChromaResample
(@Nullable MemorySegment lines, int width) Perform resampling ofwidth
chroma pixels inlines
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoChromaResample
Create a VideoChromaResample proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
new_
public static VideoChromaResample new_(VideoChromaMethod method, Set<VideoChromaSite> site, Set<VideoChromaFlags> flags, VideoFormat format, int hFactor, int vFactor) Create a new resampler object for the given parameters. WhenhFactor
orvFactor
is > 0, upsampling will be used, otherwise subsampling is performed.- Parameters:
method
- aGstVideoChromaMethod
site
- aGstVideoChromaSite
flags
-GstVideoChromaFlags
format
- theGstVideoFormat
hFactor
- horizontal resampling factorvFactor
- vertical resampling factor- Returns:
- a new
GstVideoChromaResample
that should be freed with gst_video_chroma_resample_free() after usage.
-
new_
public static VideoChromaResample new_(VideoChromaMethod method, VideoChromaSite site, VideoChromaFlags flags, VideoFormat format, int hFactor, int vFactor) Create a new resampler object for the given parameters. WhenhFactor
orvFactor
is > 0, upsampling will be used, otherwise subsampling is performed.- Parameters:
method
- aGstVideoChromaMethod
site
- aGstVideoChromaSite
flags
-GstVideoChromaFlags
format
- theGstVideoFormat
hFactor
- horizontal resampling factorvFactor
- vertical resampling factor- Returns:
- a new
GstVideoChromaResample
that should be freed with gst_video_chroma_resample_free() after usage.
-
videoChromaResample
Perform resampling ofwidth
chroma pixels inlines
.- Parameters:
lines
- pixel lineswidth
- the number of pixels on one line
-
free
public void free()Free this VideoChromaResample -
getInfo
-