16 lines
420 B
C++
16 lines
420 B
C++
|
// 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);
|
||
|
|
||
|
}}
|