Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
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 
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>     
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 }       
00111 
00112 
00113 #endif //__POCKETKNIFE_HEADERFILE__