14 #ifndef OPNGLIB_OPNGCORE_H
15 #define OPNGLIB_OPNGCORE_H
19 #include "optk/bits.h"
77 int nb, nc, nm, np, nz;
80 optk_bits_t filter_set;
81 optk_bits_t zcompr_level_set;
82 optk_bits_t zmem_level_set;
83 optk_bits_t zstrategy_set;
131 const char *in_fname,
132 const char *out_fname,
133 const char *out_dirname);
149 const char *out_fname);
173 OPNG_MSG_WARNING = 30,
175 OPNG_MSG_CRITICAL = 50,
176 OPNG_MSG_OFF = (
unsigned int)(-1),
177 OPNG_MSG_DEFAULT = OPNG_MSG_OFF
186 OPNG_MSGFMT_UNIX = 1,
187 OPNG_MSGFMT_FANCY = 2,
188 OPNG_MSGFMT_DEFAULT = OPNG_MSGFMT_UNIX
269 opng_error(
const char *fname,
const char *message,
const char *submessage);
279 OPNG_OPTIM_LEVEL_MIN = -2,
280 OPNG_OPTIM_LEVEL_MAX = 6,
281 OPNG_OPTIM_LEVEL_FASTEST = -2,
282 OPNG_OPTIM_LEVEL_FAST = -1,
283 OPNG_OPTIM_LEVEL_DEFAULT = 2,
287 OPNG_FILTER_SET_MASK = (1 << (5+1)) - (1 << 0) ,
289 OPNG_ZCOMPR_LEVEL_MIN = 1,
290 OPNG_ZCOMPR_LEVEL_MAX = 9,
291 OPNG_ZCOMPR_LEVEL_SET_MASK = (1 << (9+1)) - (1 << 1) ,
293 OPNG_ZMEM_LEVEL_MIN = 1,
294 OPNG_ZMEM_LEVEL_MAX = 9,
295 OPNG_ZMEM_LEVEL_SET_MASK = (1 << (9+1)) - (1 << 1) ,
297 OPNG_ZSTRATEGY_MIN = 0,
298 OPNG_ZSTRATEGY_MAX = 3,
299 OPNG_ZSTRATEGY_SET_MASK = (1 << (3+1)) - (1 << 0) ,
304 OPNG_ZWINDOW_BITS_MIN = 8,
305 OPNG_ZWINDOW_BITS_MAX = 15,
306 OPNG_ZWINDOW_BITS_SET_MASK = (1 << (15+1)) - (1 << 8)
317 const char *library_name;
318 const char *library_version;