Top |
Functions
void | gst_video_dither_free () |
void | gst_video_dither_line () |
GstVideoDither * | gst_video_dither_new () |
Description
GstVideoDither provides implementations of several dithering algorithms that can be applied to lines of video pixels to quantize and dither them.
Functions
gst_video_dither_line ()
void gst_video_dither_line (GstVideoDither *dither
,gpointer line
,guint x
,guint y
,guint width
);
Dither width
pixels starting from offset x
in line
using dither
.
y
is the line number of line
in the output image.
gst_video_dither_new ()
GstVideoDither * gst_video_dither_new (GstVideoDitherMethod method
,GstVideoDitherFlags flags
,GstVideoFormat format
,guint quantizer[GST_VIDEO_MAX_COMPONENTS]
,guint width
);
Make a new dither object for dithering lines of format
using the
algorithm described by method
.
Each component will be quantized to a multiple of quantizer
. Better
performance is achived when quantizer
is a power of 2.
width
is the width of the lines that this ditherer will handle.
[skip]
Types and Values
enum GstVideoDitherFlags
Extra flags that influence the result from gst_video_chroma_resample_new()
.