![]() |
Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
|
#include "platform.h"
#include "util.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <assert.h>
#include "timefn.h"
#include "../lib/common/mem.h"
#include "dibio.h"
Data Structures | |
struct | fileStats |
Macros | |
#define | KB *(1 <<10) |
#define | MB *(1 <<20) |
#define | GB *(1U<<30) |
#define | SAMPLESIZE_MAX (128 KB) |
#define | MEMMULT 11 /* rough estimation : memory cost to analyze 1 byte of sample */ |
#define | COVER_MEMMULT 9 /* rough estimation : memory cost to analyze 1 byte of sample */ |
#define | FASTCOVER_MEMMULT 1 /* rough estimation : memory cost to analyze 1 byte of sample */ |
#define | NOISELENGTH 32 |
#define | MAX_SAMPLES_SIZE (2 GB) /* training dataset limited to 2GB */ |
#define | DISPLAY(...) |
#define | DISPLAYLEVEL(l, ...) |
#define | DISPLAYUPDATE(l, ...) |
#define | DEBUG 0 |
#define | DEBUGOUTPUT(...) |
#define | EXM_THROW(error, ...) |
#define | MIN(a, b) |
#define | DiB_rotl32(x, r) |
Functions | |
int | DiB_trainFromFiles (const char *dictFileName, size_t maxDictSize, const char **fileNamesTable, int nbFiles, size_t chunkSize, ZDICT_legacy_params_t *params, ZDICT_cover_params_t *coverParams, ZDICT_fastCover_params_t *fastCoverParams, int optimize, unsigned memLimit) |
#define COVER_MEMMULT 9 /* rough estimation : memory cost to analyze 1 byte of sample */ |
#define DEBUG 0 |
#define DEBUGOUTPUT | ( | ... | ) |
#define DiB_rotl32 | ( | x, | |
r ) |
#define DISPLAY | ( | ... | ) |
#define DISPLAYLEVEL | ( | l, | |
... ) |
#define DISPLAYUPDATE | ( | l, | |
... ) |
#define EXM_THROW | ( | error, | |
... ) |
#define FASTCOVER_MEMMULT 1 /* rough estimation : memory cost to analyze 1 byte of sample */ |
#define GB *(1U<<30) |
#define KB *(1 <<10) |
#define MB *(1 <<20) |
#define MEMMULT 11 /* rough estimation : memory cost to analyze 1 byte of sample */ |
#define NOISELENGTH 32 |
#define SAMPLESIZE_MAX (128 KB) |
int DiB_trainFromFiles | ( | const char * | dictFileName, |
size_t | maxDictSize, | ||
const char ** | fileNamesTable, | ||
int | nbFiles, | ||
size_t | chunkSize, | ||
ZDICT_legacy_params_t * | params, | ||
ZDICT_cover_params_t * | coverParams, | ||
ZDICT_fastCover_params_t * | fastCoverParams, | ||
int | optimize, | ||
unsigned | memLimit ) |
DiB_trainFromFiles() : Train a dictionary from a set of files provided by fileNamesTable
. Resulting dictionary is written into file dictFileName
. parameters
is optional and can be provided with values set to 0, meaning "default".