defs.h
Go to the documentation of this file.
00001 /*******************************************************************************#
00002 #           guvcview              http://guvcview.berlios.de                    #
00003 #                                                                               #
00004 #           Paulo Assis <pj.assis@gmail.com>                                    #
00005 #                                                                               #
00006 # This program is free software; you can redistribute it and/or modify          #
00007 # it under the terms of the GNU General Public License as published by          #
00008 # the Free Software Foundation; either version 2 of the License, or             #
00009 # (at your option) any later version.                                           #
00010 #                                                                               #
00011 # This program is distributed in the hope that it will be useful,               #
00012 # but WITHOUT ANY WARRANTY; without even the implied warranty of                #
00013 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                 #
00014 # GNU General Public License for more details.                                  #
00015 #                                                                               #
00016 # You should have received a copy of the GNU General Public License             #
00017 # along with this program; if not, write to the Free Software                   #
00018 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA     #
00019 #                                                                               #
00020 ********************************************************************************/
00021 
00022 #ifndef DEFS_H
00023 #define DEFS_H
00024 #include <inttypes.h>
00025 #include <sys/types.h>
00026 
00027 typedef uint64_t QWORD;
00028 typedef uint32_t DWORD;
00029 typedef uint16_t WORD;
00030 typedef uint8_t  BYTE;
00031 typedef unsigned int LONG;
00032 typedef unsigned int UINT;
00033 
00034 typedef unsigned long long ULLONG;
00035 typedef unsigned long      ULONG;
00036 
00037 typedef char* pchar;
00038 
00039 typedef char               INT8;
00040 typedef unsigned char      UINT8;
00041 typedef short              INT16;
00042 typedef unsigned short int UINT16;
00043 typedef int                INT32;
00044 typedef unsigned int       UINT32;
00045 
00046 /* 0 is device default*/
00047 static const int stdSampleRates[] = 
00048 { 
00049         0, 8000,  9600, 11025, 12000,
00050         16000, 22050, 24000,
00051         32000, 44100, 48000,
00052         88200, 96000,
00053         -1   /* Negative terminated list. */
00054 };
00055 
00056 /*----------- guvcview version ----------------*/
00057 //#define VERSION ("") /*defined in config.h*/
00058 #define DEBUG (0)
00059 /*---------- Thread Stack Size (bytes) --------*/
00060 #define TSTACK (128*64*1024) /* Debian Default 128 pages of 64k = 8388608 bytes*/
00061 
00062 /*----------- AVI max file size ---------------*/
00063 #define AVI_MAX_SIZE (1900*1024*1024)
00064 /* extra size beyond MAX SIZE at wich we can still write data*/ 
00065 #define AVI_EXTRA_SIZE (20*1024*1024)
00066 
00067 #define INCPANTILT 64 // 1°
00068 
00069 #define WINSIZEX 575
00070 #define WINSIZEY 610
00071 
00072 #define AUTO_EXP 8
00073 #define MAN_EXP 1
00074 
00075 #define DHT_SIZE 432
00076 
00077 #define DEFAULT_WIDTH 640
00078 #define DEFAULT_HEIGHT 480
00079 
00080 #define DEFAULT_IMAGE_FNAME     "Image.jpg"
00081 #define DEFAULT_AVI_FNAME       "capture.avi"
00082 #define DEFAULT_FPS     25
00083 #define DEFAULT_FPS_NUM 1
00084 #define SDL_WAIT_TIME 30 /*SDL - Thread loop sleep time */
00085 
00086 /*clip value between 0 and 255*/
00087 #define CLIP(value) (unsigned char)(((value)>0xFF)?0xff:(((value)<0)?0:(value)))
00088 
00089 /*FILTER FLAGS*/
00090 #define YUV_NOFILT 0x0000
00091 #define YUV_MIRROR 0x0001
00092 #define YUV_UPTURN 0x0002
00093 #define YUV_NEGATE 0x0004
00094 #define YUV_MONOCR 0x0008
00095 
00096 #endif
00097 


corobot_camera
Author(s): Morgan Cormier/mcormier@coroware.com
autogenerated on Tue Jan 7 2014 11:39:24