| 1 |
/* |
| 2 |
xWinTV using Bt848 frame grabber driver |
| 3 |
|
| 4 |
Copyright (C) 1998 Moritz Wenk ([email protected]) |
| 5 |
|
| 6 |
This program is free software; you can redistribute it and/or modify |
| 7 |
it under the terms of the GNU General Public License as published by |
| 8 |
the Free Software Foundation; either version 2 of the License, or |
| 9 |
(at your option) any later version. |
| 10 |
|
| 11 |
This program is distributed in the hope that it will be useful, |
| 12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
GNU General Public License for more details. |
| 15 |
|
| 16 |
You should have received a copy of the GNU General Public License |
| 17 |
along with this program; if not, write to the Free Software |
| 18 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 19 |
*/ |
| 20 |
|
| 21 |
#ifndef WINTV_H |
| 22 |
#define WINTV_H |
| 23 |
|
| 24 |
// for debugging |
| 25 |
// |
| 26 |
// myDEBUG to debug all |
| 27 |
// sDEBUG mixer |
| 28 |
// tvDEBUG winTVScreen |
| 29 |
// rcDEBUG rcfile |
| 30 |
// vtxDEBUG vtx |
| 31 |
// X11DEBUG x11-events |
| 32 |
//#define X11DEBUG |
| 33 |
|
| 34 |
// debug everything |
| 35 |
// #define myDEBUG // this can be defined with ./configure --enable-debug |
| 36 |
|
| 37 |
// need this to avoid conflicting type declarations in Xmd.h and qglobal.h |
| 38 |
#define QT_CLEAN_NAMESPACE |
| 39 |
|
| 40 |
// this is obsolete and should be removed in later versions! |
| 41 |
#define withTVscreen |
| 42 |
|
| 43 |
// change this values to adjust range and step of mixer slider |
| 44 |
#define MIXER_MAX_VALUE 100 |
| 45 |
#define MIXER_STEP 3 |
| 46 |
|
| 47 |
// range is -FINETUNERANGE*4 ... FINETUNERANGE*4 |
| 48 |
#define FINETUNERANGE 16 |
| 49 |
|
| 50 |
// signal quality must be better than this value to detect a vaild channel |
| 51 |
#define SIGQUALITY 0 |
| 52 |
|
| 53 |
#define TIMEWAIT 500 |
| 54 |
|
| 55 |
|
| 56 |
#define OP_CAP 1 |
| 57 |
#define OP_BPP 2 |
| 58 |
#define OP_VME 3 |
| 59 |
#define OP_DEV 4 |
| 60 |
#define OP_SHI 5 |
| 61 |
#define OP_REF 6 |
| 62 |
#define OP_PAL 7 |
| 63 |
#define OP_DOK 8 |
| 64 |
|
| 65 |
/* ------------------- some definitions ---------------------------------*/ |
| 66 |
|
| 67 |
// aspect ratio |
| 68 |
#define ASPECT_NONE 0 |
| 69 |
#define ASPECT_16_9 1 |
| 70 |
#define ASPECT_4_3 2 |
| 71 |
|
| 72 |
#define ASPECT_FIX_BOTH 0 |
| 73 |
#define ASPECT_FIX_HOR 1 |
| 74 |
#define ASPECT_FIX_VER 2 |
| 75 |
|
| 76 |
// some defaults |
| 77 |
#define DCOL 254 |
| 78 |
#define DBRI 0 |
| 79 |
#define DHUE 0 |
| 80 |
#define DCONTRAST 216 |
| 81 |
#define DNORM 0 |
| 82 |
#define DIN 0 |
| 83 |
#define DFREQ 772 |
| 84 |
#define DCHANNEL 1 |
| 85 |
|
| 86 |
#define PICNAME "image" |
| 87 |
#define VIDNAME "video" |
| 88 |
|
| 89 |
#define NONE 0 |
| 90 |
|
| 91 |
#define DEFAULT_WIDTH 320 |
| 92 |
#define DEFAULT_HEIGHT 240 |
| 93 |
|
| 94 |
#define PAL_WIDTH 768 |
| 95 |
#define PAL_WIDE_WIDTH 922 |
| 96 |
#define PAL_HEIGHT 576 |
| 97 |
|
| 98 |
#define NTSC_WIDTH 640 |
| 99 |
#define NTSC_HEIGHT 480 |
| 100 |
|
| 101 |
// several delay times |
| 102 |
#define DEFAULT_DELAY 200 // 0.2 sec |
| 103 |
#define AUDIOMODE_DELAY 1000 // 1 sec. |
| 104 |
#define INFO_DELAY 3000 // 3 sec. |
| 105 |
|
| 106 |
// audio |
| 107 |
#define AUDIOMODE_AUTODETECT 256 |
| 108 |
#define CAN_AUDIO_VOLUME 1 |
| 109 |
|
| 110 |
// supported video clip formats |
| 111 |
#define VIDEOCLIP_AVI 0 |
| 112 |
#define VIDEOCLIP_PPM 1 |
| 113 |
#define VIDEOCLIP_RAW 2 |
| 114 |
#define VIDEOCLIP_IV5 3 |
| 115 |
|
| 116 |
// supported shap shot formats |
| 117 |
#define SNAPSHOT_PNM 0 |
| 118 |
#define SNAPSHOT_JPEG 1 |
| 119 |
#define SNAPSHOT_TIFF 2 |
| 120 |
#define SNAPSHOT_PNG 3 |
| 121 |
#define SNAPSHOT_GIF 4 |
| 122 |
|
| 123 |
#define CHINFO_NODISPVAL -1024 |
| 124 |
#define OSD_LEVEL_OFF 0 |
| 125 |
#define OSD_LEVEL_1 1 |
| 126 |
#define OSD_LEVEL_2 2 |
| 127 |
|
| 128 |
#define VIEWREFRESH_ALLOW 1 |
| 129 |
#define VIEWREFRESH_VISIBILITY 2 |
| 130 |
|
| 131 |
#endif // WINTV_H |