PocketKnife.h
Go to the documentation of this file.
1 /* ========================================================================
2  * Copyright (C) 2004-2005 Graz University of Technology
3  *
4  * This framework is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This framework is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this framework; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * For further information please contact Dieter Schmalstieg under
19  * <schmalstieg@icg.tu-graz.ac.at> or write to Dieter Schmalstieg,
20  * Graz University of Technology, Institut für Maschinelles Sehen und Darstellen,
21  * Inffeldgasse 16a, 8010 Graz, Austria.
22  * ========================================================================
23  * PROJECT: PocketKnife
24  * ======================================================================== */
29 /* ======================================================================== */
30 
31 
32 
33 #ifndef __POCKETKNIFE_HEADERFILE__
34 #define __POCKETKNIFE_HEADERFILE__
35 
36 
37 #ifndef NULL
38 #define NULL 0
39 #endif
40 
41 
42 // define host specific preprocessor definitions
43 //
44 #if defined(__SYMBIAN32__) // Symbian emulator builds also use MS VC compiler, so we have to check it first
45 # define TARGET_HOST_WIN32 0
46 # define TARGET_HOST_WINCE 0
47 # define TARGET_HOST_SYMBIAN 1
48 #elif defined(_WIN32_WCE)
49 # define TARGET_HOST_WIN32 0
50 # define TARGET_HOST_WINCE 1
51 # define TARGET_HOST_SYMBIAN 0
52 #elif defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__)
53 # define TARGET_HOST_WIN32 1
54 # define TARGET_HOST_WINCE 0
55 # define TARGET_HOST_SYMBIAN 0
56 #endif
57 
58 #if TARGET_HOST_SYMBIAN
59 #include <stddef.h> // include standard definitions like wchar_t
60 #endif
61 
62 namespace PN {
63 
64  const unsigned short RED_MASK = 0x1F << 11;
65  const unsigned short GREEN_MASK = 0x3F << 5;
66  const unsigned short BLUE_MASK = 0x1F;
67  const unsigned int RED_SHIFT = 11;
68  const unsigned int GREEN_SHIFT = 5;
69  const unsigned int BLUE_SHIFT = 0;
70  const unsigned int RED_BITS = 5;
71  const unsigned int GREEN_BITS = 6;
72  const unsigned int BLUE_BITS = 5;
73 
74 
76  {
84  };
85 
86 
87  enum FORMAT {
95 
96  MAX_WIDTH = 10000,
97  MAX_HEIGHT = 10000
98  };
99 
100 
101  enum ROTATION
102  {
103  ROTATE_0 = 0,
107  };
108 
109 
110 } // namespace PN
111 
112 
113 #endif //__POCKETKNIFE_HEADERFILE__
PIXELFORMAT
Definition: PocketKnife.h:75
Definition: Image.cpp:46
const unsigned int BLUE_BITS
Definition: PocketKnife.h:72
const unsigned int RED_SHIFT
Definition: PocketKnife.h:67
const unsigned int GREEN_BITS
Definition: PocketKnife.h:71
const unsigned int GREEN_SHIFT
Definition: PocketKnife.h:68
const unsigned short GREEN_MASK
Definition: PocketKnife.h:65
ROTATION
Definition: PocketKnife.h:101
const unsigned int BLUE_SHIFT
Definition: PocketKnife.h:69
FORMAT
Definition: PocketKnife.h:87
const unsigned short BLUE_MASK
Definition: PocketKnife.h:66
const unsigned int RED_BITS
Definition: PocketKnife.h:70
const unsigned short RED_MASK
Definition: PocketKnife.h:64


tuw_artoolkitplus
Author(s): Markus Bader
autogenerated on Sun Sep 4 2016 03:24:33