17#ifndef FILTERS_GP_DITHER_H
18#define FILTERS_GP_DITHER_H
gp_pixmap * gp_filter_dither_alloc(gp_dither_type type, const gp_pixmap *src, gp_pixel_type pixel_type, gp_progress_cb *callback)
Allocates dst and runs dithering from src->pixel_type to pixel_type.
static gp_pixmap * gp_filter_sierra_lite_alloc(const gp_pixmap *src, gp_pixel_type pixel_type, gp_progress_cb *callback)
Allocates dst and runs sierra_lite dithering from src->pixel_type to dst->pixel_type.
static gp_pixmap * gp_filter_atkinson_alloc(const gp_pixmap *src, gp_pixel_type pixel_type, gp_progress_cb *callback)
Allocates dst and runs atkinson dithering from src->pixel_type to dst->pixel_type.
int gp_filter_hilbert_peano(const gp_pixmap *src, gp_pixmap *dst, gp_progress_cb *callback)
Runs hilbert_peano dithering from src::pixel_type to dst::pixel_type.
int gp_filter_atkinson(const gp_pixmap *src, gp_pixmap *dst, gp_progress_cb *callback)
Runs atkinson dithering from src::pixel_type to dst::pixel_type.
static gp_pixmap * gp_filter_floyd_steinberg_alloc(const gp_pixmap *src, gp_pixel_type pixel_type, gp_progress_cb *callback)
Allocates dst and runs floyd_steinberg dithering from src->pixel_type to dst->pixel_type.
gp_dither_type gp_dither_type_by_name(const char *dither_name)
Returns dithering type by name.
static gp_pixmap * gp_filter_hilbert_peano_alloc(const gp_pixmap *src, gp_pixel_type pixel_type, gp_progress_cb *callback)
Allocates dst and runs hilbert_peano dithering from src->pixel_type to dst->pixel_type.
int gp_filter_sierra_lite(const gp_pixmap *src, gp_pixmap *dst, gp_progress_cb *callback)
Runs sierra_lite dithering from src::pixel_type to dst::pixel_type.
int gp_filter_floyd_steinberg(const gp_pixmap *src, gp_pixmap *dst, gp_progress_cb *callback)
Runs floyd_steinberg dithering from src::pixel_type to dst::pixel_type.
gp_dither_type
Dithering types.
@ GP_DITHER_HILBERT_PEANO
A hilbert-peano dithering.
@ GP_DITHER_SIERRA_LITE
A sierra lite dithering.
@ GP_DITHER_FLOYD_STEINBERG
Classical Floyd-Steinberg.
@ GP_DITHER_ATKINSON
Modified Atkinson dithering.
@ GP_DITHER_MAX
Number of dithering types.
@ GP_DITHER_SIERRA
A sierra dithering.
static gp_pixmap * gp_filter_sierra_alloc(const gp_pixmap *src, gp_pixel_type pixel_type, gp_progress_cb *callback)
Allocates dst and runs sierra dithering from src->pixel_type to dst->pixel_type.
int gp_filter_dither(gp_dither_type type, const gp_pixmap *src, gp_pixmap *dst, gp_progress_cb *callback)
Runs dithering from src->pixel_type to dst->pixel_type.
const char * gp_dither_type_name(gp_dither_type dither_type)
Returns dithering name for a given dithering type.
int gp_filter_sierra(const gp_pixmap *src, gp_pixmap *dst, gp_progress_cb *callback)
Runs sierra dithering from src::pixel_type to dst::pixel_type.
gp_pixel_type
List of all pixel types.