forked from FLIF-hub/FLIF
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflif_config.h
More file actions
22 lines (14 loc) · 713 Bytes
/
flif_config.h
File metadata and controls
22 lines (14 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// output the first K zoomlevels without building trees (too little data anyway to learn much from it)
#define NB_NOLEARN_ZOOMS 12
// this is enough to get a reasonable thumbnail/icon before the tree gets built/transmitted (at most 64x64 pixels)
// more repeats makes encoding more expensive, but results in better trees (smaller files)
#define TREE_LEARN_REPEATS 3
// during decode, check for unexpected file end and interpolate from there
#define CHECK_FOR_BROKENFILES 1
#include "maniac/rac.h"
typedef RacInput40 RacIn;
typedef RacOutput40 RacOut;
//typedef RacInput24 RacIn;
//typedef RacOutput24 RacOut;
#include "maniac/compound.h"
typedef MultiscaleBitChance<6,SimpleBitChance> FLIFBitChanceMeta;