-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.h
54 lines (41 loc) · 1.34 KB
/
options.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* Copyright 2005 Andrew Rice
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* Email: [email protected]
*/
#define EDGE_CELLS 16
#define USE_CRC
#define CHECKSUM_BITS 3
#define MIN_TAG_BOUNDING_BOX_AREA (80*80)
#define LOG_ADAPTIVE_THRESHOLD_WINDOW 8
#define ADAPTIVE_THRESHOLD_OFFSET 30
#define GLOBAL_THRESHOLD 42
/* Fixed point stuff */
#define FRAC_BITS 16
#define LOG_CURVATURE_WINDOW 6
#define IMAGE_WIDTH 640
#define IMAGE_HEIGHT 480
#define IMAGE_BYTES_PER_LINE 640
#define PAYLOAD_SIZE (EDGE_CELLS*EDGE_CELLS)
#define PAYLOAD_SIZE_BYTES (PAYLOAD_SIZE>>3)
#define QUADRANT_SIZE ((EDGE_CELLS*EDGE_CELLS)>>2)
/*
#define IMAGE_DEBUG
#define TEXT_DEBUG
*/
#define DISPLAY_CODE