Package org.freedesktop.gstreamer.video
Class VideoDither
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoDither
- All Implemented Interfaces:
Proxy
GstVideoDither provides implementations of several dithering algorithms
that can be applied to lines of video pixels to quantize and dither them.
-
Constructor Summary
ConstructorDescriptionVideoDither
(MemorySegment address) Create a VideoDither proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoid
free()
Free this VideoDithervoid
line
(@Nullable MemorySegment line, int x, int y, int width) Ditherwidth
pixels starting from offsetx
inline
using this VideoDither.static VideoDither
new_
(VideoDitherMethod method, Set<VideoDitherFlags> flags, VideoFormat format, MemorySegment quantizer, int width) Make a new dither object for dithering lines offormat
using the algorithm described bymethod
.static VideoDither
new_
(VideoDitherMethod method, VideoDitherFlags flags, VideoFormat format, MemorySegment quantizer, int width) Make a new dither object for dithering lines offormat
using the algorithm described bymethod
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoDither
Create a VideoDither proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
new_
public static VideoDither new_(VideoDitherMethod method, Set<VideoDitherFlags> flags, VideoFormat format, MemorySegment quantizer, int width) Make a new dither object for dithering lines offormat
using the algorithm described bymethod
.Each component will be quantized to a multiple of
quantizer
. Better performance is achieved whenquantizer
is a power of 2.width
is the width of the lines that this ditherer will handle.- Parameters:
method
- aGstVideoDitherMethod
flags
- aGstVideoDitherFlags
format
- aGstVideoFormat
quantizer
- quantizerwidth
- the width of the lines- Returns:
- a new
GstVideoDither
-
new_
public static VideoDither new_(VideoDitherMethod method, VideoDitherFlags flags, VideoFormat format, MemorySegment quantizer, int width) Make a new dither object for dithering lines offormat
using the algorithm described bymethod
.Each component will be quantized to a multiple of
quantizer
. Better performance is achieved whenquantizer
is a power of 2.width
is the width of the lines that this ditherer will handle.- Parameters:
method
- aGstVideoDitherMethod
flags
- aGstVideoDitherFlags
format
- aGstVideoFormat
quantizer
- quantizerwidth
- the width of the lines- Returns:
- a new
GstVideoDither
-
free
public void free()Free this VideoDither -
line
Ditherwidth
pixels starting from offsetx
inline
using this VideoDither.y
is the line number ofline
in the output image.- Parameters:
line
- pointer to the pixels of the linex
- x coordinatey
- y coordinatewidth
- the width
-