| 1 | /* | 
|---|
| 2 | Phlips webcam INDI driver | 
|---|
| 3 | Copyright (C) 2003-2005 by Jasem Mutlaq | 
|---|
| 4 |  | 
|---|
| 5 | This library is free software; you can redistribute it and/or | 
|---|
| 6 | modify it under the terms of the GNU Lesser General Public | 
|---|
| 7 | License as published by the Free Software Foundation; either | 
|---|
| 8 | version 2.1 of the License, or (at your option) any later version. | 
|---|
| 9 |  | 
|---|
| 10 | This library is distributed in the hope that it will be useful, | 
|---|
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | 
|---|
| 13 | Lesser General Public License for more details. | 
|---|
| 14 |  | 
|---|
| 15 | You should have received a copy of the GNU Lesser General Public | 
|---|
| 16 | License along with this library; if not, write to the Free Software | 
|---|
| 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA | 
|---|
| 18 |  | 
|---|
| 19 | 2005.04.29  JM: There is no need for this file for Video 4 Linux 2. It is kept for V4L 1 compatibility. | 
|---|
| 20 |  | 
|---|
| 21 | */ | 
|---|
| 22 |  | 
|---|
| 23 | #ifndef V4LPHILIPS_H | 
|---|
| 24 | #define V4LPHILIPS_H | 
|---|
| 25 |  | 
|---|
| 26 |  | 
|---|
| 27 |  | 
|---|
| 28 | #ifndef HAVE_LINUX_VIDEODEV2_H | 
|---|
| 29 | #include "webcam/v4l1_pwc.h" | 
|---|
| 30 | #endif | 
|---|
| 31 |  | 
|---|
| 32 | #include "v4ldriver.h" | 
|---|
| 33 |  | 
|---|
| 34 | class V4L_Philips : public V4L_Driver | 
|---|
| 35 | { | 
|---|
| 36 | public: | 
|---|
| 37 | V4L_Philips(); | 
|---|
| 38 | ~V4L_Philips(); | 
|---|
| 39 |  | 
|---|
| 40 | /* INDI Functions that must be called from indidrivermain */ | 
|---|
| 41 | void ISGetProperties (const char *dev); | 
|---|
| 42 | void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n); | 
|---|
| 43 | void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n); | 
|---|
| 44 | void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n); | 
|---|
| 45 |  | 
|---|
| 46 | void initCamBase(); | 
|---|
| 47 | void initProperties(const char *dev); | 
|---|
| 48 | void connectCamera(void); | 
|---|
| 49 |  | 
|---|
| 50 | private: | 
|---|
| 51 |  | 
|---|
| 52 | /* Switches */ | 
|---|
| 53 | ISwitch BackLightS[2]; | 
|---|
| 54 | ISwitch AntiFlickerS[2]; | 
|---|
| 55 | ISwitch NoiseReductionS[4]; | 
|---|
| 56 | ISwitch CamSettingS[3]; | 
|---|
| 57 | ISwitch WhiteBalanceModeS[5]; | 
|---|
| 58 |  | 
|---|
| 59 |  | 
|---|
| 60 | /* Nmubers */ | 
|---|
| 61 | INumber WhiteBalanceN[2]; | 
|---|
| 62 | INumber ShutterSpeedN[1]; | 
|---|
| 63 |  | 
|---|
| 64 | /* Switch Vectors */ | 
|---|
| 65 | ISwitchVectorProperty BackLightSP; | 
|---|
| 66 | ISwitchVectorProperty AntiFlickerSP; | 
|---|
| 67 | ISwitchVectorProperty NoiseReductionSP; | 
|---|
| 68 | ISwitchVectorProperty CamSettingSP; | 
|---|
| 69 | ISwitchVectorProperty WhiteBalanceModeSP; | 
|---|
| 70 |  | 
|---|
| 71 | /* Number Vectors */ | 
|---|
| 72 | INumberVectorProperty WhiteBalanceNP; | 
|---|
| 73 | INumberVectorProperty ShutterSpeedNP; | 
|---|
| 74 |  | 
|---|
| 75 | #ifndef HAVE_LINUX_VIDEODEV2_H | 
|---|
| 76 | V4L1_PWC * v4l_pwc; | 
|---|
| 77 | void updateV4L1Controls(); | 
|---|
| 78 | void getBasicData(void); | 
|---|
| 79 | #endif | 
|---|
| 80 |  | 
|---|
| 81 | }; | 
|---|
| 82 |  | 
|---|
| 83 | #endif | 
|---|
| 84 |  | 
|---|