Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

playerv4l2c.h

Go to the documentation of this file.
00001 /*
00002  *  This program is free software; you can redistribute it and/or modify
00003  *  it under the terms of the GNU General Public License as published by
00004  *  the Free Software Foundation; either version 2 of the License, or
00005  *  (at your option) any later version.
00006  *
00007  *  This program is distributed in the hope that it will be useful,
00008  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00009  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010  *  GNU General Public License for more details.
00011  *
00012  *  You should have received a copy of the GNU General Public License
00013  *  along with this program; if not, write to the Free Software
00014  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00015  *
00016  */
00018 //
00019 // Desc: Client library in C to access  player_driver_camerav4l2 interface
00020 // Author: Marcin Rudowski
00021 // Email: mar_rud@poczta.onet.pl
00022 // Date: 19 Jun 2006
00023 //
00025 #ifndef __PLAYERV2L2C__H_
00026 #define __PLAYERV2L2C__H_
00027 
00028 #include <playerc.h>
00069 #ifndef __PLAYERV2L2__H_
00070 
00072 enum FieldTypes {
00073     PLAYER_V4L2_FIELD_ANY=0,
00074     PLAYER_V4L2_FIELD_NONE,
00075     PLAYER_V4L2_FIELD_TOP,
00076     PLAYER_V4L2_FIELD_BOTTOM,
00077     PLAYER_V4L2_FIELD_INTERLACED,
00078     PLAYER_V4L2_FIELD_SEQ_TB,
00079     PLAYER_V4L2_FIELD_SEQ_BT,
00080     PLAYER_V4L2_FIELD_ALTERNATE
00081 };
00082 
00084 enum NormStandards {
00085     PLAYER_V4L2_STD_PAL=0,
00086     PLAYER_V4L2_STD_NTSC,
00087     PLAYER_V4L2_STD_SECAM,
00088     PLAYER_V4L2_STD_OTHER=-1
00089 };
00090 
00092 enum PixelFormats {
00093     PLAYER_V4L2_FMT_RGB24=0,
00094     PLAYER_V4L2_FMT_RGB32,
00095     PLAYER_V4L2_FMT_BGR24,
00096     PLAYER_V4L2_FMT_BGR32,
00097     PLAYER_V4L2_FMT_GREY,
00098     PLAYER_V4L2_FMT_RGB565,
00099     PLAYER_V4L2_FMT_SBGGR8,
00100     PLAYER_V4L2_FMT_RGB332,
00101     PLAYER_V4L2_FMT_RGB555,
00102     PLAYER_V4L2_FMT_RGB555X,
00103     PLAYER_V4L2_FMT_RGB565X,
00104     PLAYER_V4L2_FMT_YVU410,
00105     PLAYER_V4L2_FMT_YVU420,
00106     PLAYER_V4L2_FMT_YUYV,
00107     PLAYER_V4L2_FMT_UYVY,
00108     PLAYER_V4L2_FMT_YUV422P,
00109     PLAYER_V4L2_FMT_YUV411P,
00110     PLAYER_V4L2_FMT_Y41P,
00111     PLAYER_V4L2_FMT_NV12,
00112     PLAYER_V4L2_FMT_NV21,
00113     PLAYER_V4L2_FMT_OTHER=-1
00114 };
00115 #endif
00116 
00118 int playerv4l2c_camera_selectSourceI(playerc_camera_t *device, int src_id);
00119 
00121 int playerv4l2c_camera_selectSourceS(playerc_camera_t *device, const char *src_name);
00122 
00124 int playerv4l2c_camera_setFrameSize(playerc_camera_t *device, int w, int h);
00125 
00126 
00127 
00129 int playerv4l2c_camera_setNormI(playerc_camera_t *device, int normID);
00130 
00132 int playerv4l2c_camera_setNormS(playerc_camera_t *device, const char * normID);
00133 
00135 int playerv4l2c_camera_setFieldTypeI(playerc_camera_t *device, int fielsType);
00136 
00138 int playerv4l2c_camera_setFieldTypeS(playerc_camera_t *device, const char * fielsType);
00139 
00141 int playerv4l2c_camera_setPixelFormatI(playerc_camera_t *device, int pixFormat);
00142 
00144 int playerv4l2c_camera_setPixelFormatS(playerc_camera_t *device, const char * pixFormat);
00145 
00147 int playerv4l2c_camera_setSwapRB(playerc_camera_t *device, int swap);
00148 
00149 
00150 
00152 int playerv4l2c_camera_countControls(playerc_camera_t *device );
00153 
00158 int playerv4l2c_camera_setControlValueI(playerc_camera_t *device, int id, double value);
00159 
00164 int playerv4l2c_camera_setControlValueS(playerc_camera_t *device, const char *name, double value);
00165 
00168 double playerv4l2c_camera_getControlValueI(playerc_camera_t *device, int id);
00169 
00172 double playerv4l2c_camera_getControlValueS(playerc_camera_t *device, const char *name);
00173 
00174 
00175 
00177 int playerv4l2c_camera_setBrighteness(playerc_camera_t *device, double value);
00178 
00180 double playerv4l2c_camera_getBrighteness(playerc_camera_t *device);
00181 
00183 int playerv4l2c_camera_setSaturation(playerc_camera_t *device, double value);
00184 
00186 double playerv4l2c_camera_getSaturation(playerc_camera_t *device);
00187 
00189 int playerv4l2c_camera_setContrast(playerc_camera_t *device, double value);
00190 
00192 double playerv4l2c_camera_getContrast(playerc_camera_t *device);
00193 
00195 int playerv4l2c_camera_setHue(playerc_camera_t *device, double value);
00196 
00198 double playerv4l2c_camera_getHue(playerc_camera_t *device);
00199 
00200 
00201 
00203 const char * playerv4l2c_camera_getInputName(playerc_camera_t *device);
00204 
00206 const char * playerv4l2c_camera_getName(playerc_camera_t *device);
00207 
00208 
00209 
00211 const char * playerv4l2c_camera_getFieldS(playerc_camera_t *device);
00212 
00214 int playerv4l2c_camera_getFieldI(playerc_camera_t *device);
00215 
00217 const char * playerv4l2c_camera_getPixelFormatS(playerc_camera_t *device);
00218 
00220 int playerv4l2c_camera_getPixelFormatI(playerc_camera_t *device);
00221 
00226 #endif
00227 

Generated on Thu Jun 29 22:04:43 2006 for Camerav4l2 by  doxygen 1.4.4