Package org.freedesktop.gstreamer.video
Class VideoDither
java.lang.Object
org.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
ConstructorsConstructorDescriptionVideoDither(MemorySegment address) Create a VideoDither proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoidfree()Free this VideoDithervoidline(@Nullable MemorySegment line, int x, int y, int width) Ditherwidthpixels starting from offsetxinlineusingdither.static VideoDithernew_(VideoDitherMethod method, Set<VideoDitherFlags> flags, VideoFormat format, MemorySegment quantizer, int width) Make a new dither object for dithering lines offormatusing the algorithm described bymethod.static VideoDithernew_(VideoDitherMethod method, VideoDitherFlags flags, VideoFormat format, MemorySegment quantizer, int width) Make a new dither object for dithering lines offormatusing the algorithm described bymethod.Methods inherited from class org.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 offormatusing the algorithm described bymethod.Each component will be quantized to a multiple of
quantizer.Better performance is achieved whenquantizeris a power of 2.widthis the width of the lines that this ditherer will handle.- Parameters:
method- aGstVideoDitherMethodflags- aGstVideoDitherFlagsformat- aGstVideoFormatquantizer- 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 offormatusing the algorithm described bymethod.Each component will be quantized to a multiple of
quantizer.Better performance is achieved whenquantizeris a power of 2.widthis the width of the lines that this ditherer will handle.- Parameters:
method- aGstVideoDitherMethodflags- aGstVideoDitherFlagsformat- aGstVideoFormatquantizer- quantizerwidth- the width of the lines- Returns:
- a new
GstVideoDither
-
free
public void free()Free this VideoDither -
line
Ditherwidthpixels starting from offsetxinlineusingdither.yis the line number oflinein the output image.- Parameters:
line- pointer to the pixels of the linex- x coordinatey- y coordinatewidth- the width
-