• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

v4l1_pwc.h

Go to the documentation of this file.
00001 /*
00002     Phlips webcam driver for V4L 1
00003     Copyright (C) 2005 by Jasem Mutlaq
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Lesser General Public
00007     License as published by the Free Software Foundation; either
00008     version 2.1 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Lesser General Public License for more details.
00014 
00015     You should have received a copy of the GNU Lesser General Public
00016     License along with this library; if not, write to the Free Software
00017     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00018 
00019 */
00020 
00021 #ifndef V4L1_PWC_H
00022 #define V4L1_PWC_H
00023 
00024 #include <stdio.h>
00025 #include <stdlib.h>
00026 #include "videodev.h"
00027 #include "v4l1_base.h"
00028 
00029 class V4L1_PWC : public V4L1_Base
00030 {
00031   public:
00032    V4L1_PWC();
00033    ~V4L1_PWC();
00034  
00035         int connectCam(const char * devpath, char *errmsg);
00036 
00037     /* Philips related, from QAstrocam */
00038     int    saveSettings(char *errmsg);
00039     void   restoreSettings();
00040     void   restoreFactorySettings();
00041     int    setGain(int value, char *errmsg);
00042     int    getGain();
00043     int    setExposure(int val, char *errmsg);
00044     void   setCompression(int value);
00045     int    getCompression();
00046     int    setNoiseRemoval(int value, char *errmsg);
00047     int    getNoiseRemoval();
00048     int    setSharpness(int value, char *errmsg);
00049     int    getSharpness();
00050     int    setBackLight(bool val, char *errmsg);
00051     bool   getBackLight();
00052     int    setFlicker(bool val, char *errmsg);
00053     bool   getFlicker();
00054     void   setGama(int value);
00055     int    getGama();
00056     int    setFrameRate(int value, char *errmsg);
00057     int    getFrameRate();
00058     int    setWhiteBalance(char *errmsg);
00059     int    getWhiteBalance();
00060     int    setWhiteBalanceMode(int val, char *errmsg);
00061     int    setWhiteBalanceRed(int val, char *errmsg);
00062     int    setWhiteBalanceBlue(int val, char *errmsg);
00063     
00064     /* TODO consider the SC modded cam after this
00065     void setLongExposureTime(const QString& str);
00066     void setFrameRateMultiplicateur(int value);*/
00067 
00068 
00069     /* Updates */
00070     //void updateFrame(int d, void *p);
00071 
00072     /* Image Size */
00073     void checkSize(int & x, int & y);
00074     bool setSize(int x, int y);
00075 
00076 
00077         private:
00078     int whiteBalanceMode_;
00079     int whiteBalanceRed_;
00080     int whiteBalanceBlue_;
00081     int lastGain_;
00082     int multiplicateur_;
00083     int skippedFrame_;
00084     int type_;
00085 
00086 
00087 };
00088 
00089 #endif

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal