#ifndef LIBSIXEL_QUANT_H
#define LIBSIXEL_QUANT_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sixel.h>
SIXELSTATUS
sixel_quant_make_palette(
unsigned char **result,
unsigned const char *data,
unsigned int length,
int pixelformat,
unsigned int reqcolors,
unsigned int *ncolors,
unsigned int *origcolors,
int methodForLargest,
int methodForRep,
int qualityMode,
sixel_allocator_t *allocator);
SIXELSTATUS
sixel_quant_apply_palette(
unsigned char *result,
unsigned char *data,
int width,
int height,
int pixelformat,
unsigned char *palette,
int reqcolor,
int const methodForDiffuse,
int foptimize,
int foptimize_palette,
int complexion,
unsigned short *cachetable,
int *ncolor,
sixel_allocator_t *allocator);
void
sixel_quant_free_palette(
unsigned char *data,
sixel_allocator_t *allocator);
#if HAVE_TESTS
int
sixel_quant_tests_main(void);
#endif
#ifdef __cplusplus
}
#endif
#endif