From 0ec1a5e4da8815f6d7c31cf7941b76f3d9fd5e28 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sun, 22 Nov 2015 18:42:11 +1000 Subject: Add the mcufont encoder to the tools (including a win32 build) with binaries --- tools/mcufontencoder/src/optimize_rlefont.hh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tools/mcufontencoder/src/optimize_rlefont.hh (limited to 'tools/mcufontencoder/src/optimize_rlefont.hh') diff --git a/tools/mcufontencoder/src/optimize_rlefont.hh b/tools/mcufontencoder/src/optimize_rlefont.hh new file mode 100644 index 00000000..e4f7c78f --- /dev/null +++ b/tools/mcufontencoder/src/optimize_rlefont.hh @@ -0,0 +1,15 @@ +// This implements the actual optimization passes of the compressor. + +#include "datafile.hh" + +namespace mcufont { +namespace rlefont { + +// Initialize the dictionary table with reasonable guesses. +void init_dictionary(DataFile &datafile); + +// Perform a single optimization step, consisting itself of multiple passes +// of each of the optimization algorithms. +void optimize(DataFile &datafile, size_t iterations = 50); + +}} -- cgit v1.2.3