v4l2_controls.h
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 #ifndef V4L2_CONTROLS_H 00022 #define V4L2_CONTROLS_H 00023 00024 /* 00025 * Private V4L2 control identifiers from UVC driver. - this seems to change acording to driver version 00026 * all other User-class control IDs are defined by V4L2 (videodev2.h) 00027 */ 00028 00029 /*------------------------- new camera class controls ---------------------*/ 00030 #define V4L2_CTRL_CLASS_USER_NEW 0x00980000 00031 #define V4L2_CID_BASE_NEW (V4L2_CTRL_CLASS_USER_NEW | 0x900) 00032 #define V4L2_CID_POWER_LINE_FREQUENCY_NEW (V4L2_CID_BASE_NEW+24) 00033 #define V4L2_CID_HUE_AUTO_NEW (V4L2_CID_BASE_NEW+25) 00034 #define V4L2_CID_WHITE_BALANCE_TEMPERATURE_NEW (V4L2_CID_BASE_NEW+26) 00035 #define V4L2_CID_SHARPNESS_NEW (V4L2_CID_BASE_NEW+27) 00036 #define V4L2_CID_BACKLIGHT_COMPENSATION_NEW (V4L2_CID_BASE_NEW+28) 00037 #define V4L2_CID_LAST_NEW (V4L2_CID_BASE_NEW+31) 00038 00039 #define V4L2_CTRL_CLASS_CAMERA_NEW 0x009A0000 /* Camera class controls */ 00040 #define V4L2_CID_CAMERA_CLASS_BASE_NEW (V4L2_CTRL_CLASS_CAMERA_NEW | 0x900) 00041 00042 #define V4L2_CID_EXPOSURE_AUTO_NEW (V4L2_CID_CAMERA_CLASS_BASE_NEW+1) 00043 #define V4L2_CID_EXPOSURE_ABSOLUTE_NEW (V4L2_CID_CAMERA_CLASS_BASE_NEW+2) 00044 #define V4L2_CID_EXPOSURE_AUTO_PRIORITY_NEW (V4L2_CID_CAMERA_CLASS_BASE_NEW+3) 00045 00046 #define V4L2_CID_PAN_RELATIVE_NEW (V4L2_CID_CAMERA_CLASS_BASE_NEW+4) 00047 #define V4L2_CID_TILT_RELATIVE_NEW (V4L2_CID_CAMERA_CLASS_BASE_NEW+5) 00048 #define V4L2_CID_PAN_RESET_NEW (V4L2_CID_CAMERA_CLASS_BASE_NEW+6) 00049 #define V4L2_CID_TILT_RESET_NEW (V4L2_CID_CAMERA_CLASS_BASE_NEW+7) 00050 00051 #define V4L2_CID_PAN_ABSOLUTE_NEW (V4L2_CID_CAMERA_CLASS_BASE_NEW+8) 00052 #define V4L2_CID_TILT_ABSOLUTE_NEW (V4L2_CID_CAMERA_CLASS_BASE_NEW+9) 00053 00054 #define V4L2_CID_FOCUS_ABSOLUTE_NEW (V4L2_CID_CAMERA_CLASS_BASE_NEW+10) 00055 #define V4L2_CID_FOCUS_RELATIVE_NEW (V4L2_CID_CAMERA_CLASS_BASE_NEW+11) 00056 #define V4L2_CID_FOCUS_AUTO_NEW (V4L2_CID_CAMERA_CLASS_BASE_NEW+12) 00057 #define V4L2_CID_CAMERA_CLASS_LAST (V4L2_CID_CAMERA_CLASS_BASE_NEW+13) 00058 00059 /*--------------- old private class controls ------------------------------*/ 00060 00061 #define V4L2_CID_PRIVATE_BASE_OLD 0x08000000 00062 #define V4L2_CID_BACKLIGHT_COMPENSATION_OLD (V4L2_CID_PRIVATE_BASE_OLD+0) 00063 #define V4L2_CID_POWER_LINE_FREQUENCY_OLD (V4L2_CID_PRIVATE_BASE_OLD+1) 00064 #define V4L2_CID_SHARPNESS_OLD (V4L2_CID_PRIVATE_BASE_OLD+2) 00065 #define V4L2_CID_HUE_AUTO_OLD (V4L2_CID_PRIVATE_BASE_OLD+3) 00066 00067 #define V4L2_CID_FOCUS_AUTO_OLD (V4L2_CID_PRIVATE_BASE_OLD+4) 00068 #define V4L2_CID_FOCUS_ABSOLUTE_OLD (V4L2_CID_PRIVATE_BASE_OLD+5) 00069 #define V4L2_CID_FOCUS_RELATIVE_OLD (V4L2_CID_PRIVATE_BASE_OLD+6) 00070 00071 #define V4L2_CID_PAN_RELATIVE_OLD (V4L2_CID_PRIVATE_BASE_OLD+7) 00072 #define V4L2_CID_TILT_RELATIVE_OLD (V4L2_CID_PRIVATE_BASE_OLD+8) 00073 #define V4L2_CID_PANTILT_RESET_OLD (V4L2_CID_PRIVATE_BASE_OLD+9) 00074 00075 #define V4L2_CID_EXPOSURE_AUTO_OLD (V4L2_CID_PRIVATE_BASE_OLD+10) 00076 #define V4L2_CID_EXPOSURE_ABSOLUTE_OLD (V4L2_CID_PRIVATE_BASE_OLD+11) 00077 00078 #define V4L2_CID_WHITE_BALANCE_TEMPERATURE_AUTO_OLD (V4L2_CID_PRIVATE_BASE_OLD+12) 00079 #define V4L2_CID_WHITE_BALANCE_TEMPERATURE_OLD (V4L2_CID_PRIVATE_BASE_OLD+13) 00080 00081 #define V4L2_CID_PRIVATE_LAST (V4L2_CID_WHITE_BALANCE_TEMPERATURE_OLD+1) 00082 00083 #endif