PocketKnife.h
Go to the documentation of this file.
00001 /* ========================================================================
00002  * Copyright (C) 2004-2005  Graz University of Technology
00003  *
00004  * This framework is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published by
00006  * the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * This framework is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this framework; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  *
00018  * For further information please contact Dieter Schmalstieg under
00019  * <schmalstieg@icg.tu-graz.ac.at> or write to Dieter Schmalstieg,
00020  * Graz University of Technology, Institut für Maschinelles Sehen und Darstellen,
00021  * Inffeldgasse 16a, 8010 Graz, Austria.
00022  * ========================================================================
00023  * PROJECT: PocketKnife
00024  * ======================================================================== */
00029 /* ======================================================================== */
00030 
00031 
00032 
00033 #ifndef __POCKETKNIFE_HEADERFILE__
00034 #define __POCKETKNIFE_HEADERFILE__
00035 
00036 
00037 #ifndef NULL
00038 #define NULL 0
00039 #endif
00040 
00041 
00042 // define host specific preprocessor definitions
00043 //
00044 #if defined(__SYMBIAN32__)                              // Symbian emulator builds also use MS VC compiler, so we have to check it first
00045 #   define  TARGET_HOST_WIN32       0
00046 #   define  TARGET_HOST_WINCE       0
00047 #   define  TARGET_HOST_SYMBIAN     1
00048 #elif defined(_WIN32_WCE)
00049 #   define  TARGET_HOST_WIN32       0
00050 #   define  TARGET_HOST_WINCE       1
00051 #   define  TARGET_HOST_SYMBIAN     0
00052 #elif defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__)
00053 #   define  TARGET_HOST_WIN32       1
00054 #   define  TARGET_HOST_WINCE       0
00055 #   define  TARGET_HOST_SYMBIAN     0
00056 #endif
00057 
00058 #if TARGET_HOST_SYMBIAN
00059 #include <stddef.h>     // include standard definitions like wchar_t
00060 #endif
00061 
00062 namespace PN {
00063 
00064         const unsigned short RED_MASK    = 0x1F << 11;
00065         const unsigned short GREEN_MASK  = 0x3F << 5;
00066         const unsigned short BLUE_MASK   = 0x1F;
00067         const unsigned int   RED_SHIFT   = 11;
00068         const unsigned int   GREEN_SHIFT = 5;
00069         const unsigned int   BLUE_SHIFT  = 0;
00070         const unsigned int   RED_BITS    = 5;
00071         const unsigned int   GREEN_BITS  = 6;
00072         const unsigned int   BLUE_BITS   = 5;
00073 
00074 
00075         enum PIXELFORMAT
00076         {
00077                 YUV16,
00078                 GRAY8,
00079                 RGB16,
00080                 RGB24,
00081                 RGB32,
00082                 BGR24,
00083                 BGR32
00084         };
00085 
00086 
00087         enum FORMAT {
00088                 FORMAT_UNDEFINED = 0,
00089                 FORMAT_RLE8 = 1,
00090                 FORMAT_RLE16 = 2,
00091                 FORMAT_RLE24 = 3,
00092                 FORMAT_RAW8 = 4,
00093                 FORMAT_RAW16 = 5,
00094                 FORMAT_RAW24 = 6,
00095 
00096                 MAX_WIDTH = 10000,
00097                 MAX_HEIGHT = 10000
00098         };
00099 
00100 
00101         enum ROTATION
00102         {
00103                 ROTATE_0 = 0,
00104                 ROTATE_90 = 1,
00105                 ROTATE_180 = 2,
00106                 ROTATE_270 = 3
00107         };
00108 
00109 
00110 }       // namespace PN
00111 
00112 
00113 #endif //__POCKETKNIFE_HEADERFILE__


v4r_artoolkitplus
Author(s): Markus Bader
autogenerated on Wed Aug 26 2015 16:41:53