56 #define PSZ_SQCIF 0x00
72 #define PWC_FPS_SHIFT 16
73 #define PWC_FPS_MASK 0x00FF0000
74 #define PWC_FPS_FRMASK 0x003F0000
75 #define PWC_FPS_SNAPSHOT 0x00400000
99 #define PWC_WB_INDOOR 0
100 #define PWC_WB_OUTDOOR 1
102 #define PWC_WB_MANUAL 3
103 #define PWC_WB_AUTO 4
116 int manual_red, manual_blue;
117 int read_red, read_blue;
147 #define PWC_MPT_PAN 0x01
148 #define PWC_MPT_TILT 0x02
149 #define PWC_MPT_TIMEOUT 0x04
167 int pan_min, pan_max;
168 int tilt_min, tilt_max;
191 unsigned char command_buf[13];
197 #define PWCX_FLAG_PLANAR 0x0001
198 #define PWCX_FLAG_BAYER 0x0008
204 #define VIDIOCPWCRUSER _IO('v', 192)
206 #define VIDIOCPWCSUSER _IO('v', 193)
208 #define VIDIOCPWCFACTORY _IO('v', 194)
218 #define VIDIOCPWCSCQUAL _IOW('v', 195, int)
220 #define VIDIOCPWCGCQUAL _IOR('v', 195, int)
224 #define VIDIOCPWCGSERIAL _IOR('v', 198, struct pwc_serial)
236 #define VIDIOCPWCPROBE _IOR('v', 199, struct pwc_probe)
239 #define VIDIOCPWCSAGC _IOW('v', 200, int)
241 #define VIDIOCPWCGAGC _IOR('v', 200, int)
243 #define VIDIOCPWCSSHUTTER _IOW('v', 201, int)
246 #define VIDIOCPWCSAWB _IOW('v', 202, struct pwc_whitebalance)
247 #define VIDIOCPWCGAWB _IOR('v', 202, struct pwc_whitebalance)
250 #define VIDIOCPWCSAWBSPEED _IOW('v', 203, struct pwc_wb_speed)
251 #define VIDIOCPWCGAWBSPEED _IOR('v', 203, struct pwc_wb_speed)
254 #define VIDIOCPWCSLED _IOW('v', 205, struct pwc_leds)
255 #define VIDIOCPWCGLED _IOR('v', 205, struct pwc_leds)
258 #define VIDIOCPWCSCONTOUR _IOW('v', 206, int)
259 #define VIDIOCPWCGCONTOUR _IOR('v', 206, int)
262 #define VIDIOCPWCSBACKLIGHT _IOW('v', 207, int)
263 #define VIDIOCPWCGBACKLIGHT _IOR('v', 207, int)
266 #define VIDIOCPWCSFLICKER _IOW('v', 208, int)
267 #define VIDIOCPWCGFLICKER _IOR('v', 208, int)
270 #define VIDIOCPWCSDYNNOISE _IOW('v', 209, int)
271 #define VIDIOCPWCGDYNNOISE _IOR('v', 209, int)
274 #define VIDIOCPWCGREALSIZE _IOR('v', 210, struct pwc_imagesize)
277 #define VIDIOCPWCMPTRESET _IOW('v', 211, int)
278 #define VIDIOCPWCMPTGRANGE _IOR('v', 211, struct pwc_mpt_range)
279 #define VIDIOCPWCMPTSANGLE _IOW('v', 212, struct pwc_mpt_angles)
280 #define VIDIOCPWCMPTGANGLE _IOR('v', 212, struct pwc_mpt_angles)
281 #define VIDIOCPWCMPTSTATUS _IOR('v', 213, struct pwc_mpt_status)
284 #define VIDIOCPWCGVIDCMD _IOR('v', 215, struct pwc_video_command)
290 #define VIDIOCPWCGVIDTABLE _IOR('v', 216, struct pwc_table_init_buffer)
static bool MatchMessage(player_msghdr_t *hdr, int type, int subtype, player_devaddr_t addr)
Helper for message processing.
Definition: message.h:159
Definition: pwc-ioctl.h:80
Generic message header.
Definition: player.h:162
virtual int MainSetup(void)
Sets up the resources needed by the driver thread.
Definition: driver.h:658
virtual void MainQuit(void)
Cleanup method for driver thread (called when main exits)
Definition: driver.h:664
const char * ReadString(int section, const char *name, const char *value)
Read a string value.
uint8_t subtype
Message subtype; interface specific.
Definition: player.h:168
virtual void Main(void)=0
Main method for driver thread.
Definition: pwc-ioctl.h:114
int ReadInt(int section, const char *name, int value)
Read an integer value.
#define PLAYER_MSGTYPE_DATA
A data message.
Definition: player.h:95
#define PLAYER_MSGTYPE_RESP_ACK
A positive response message.
Definition: player.h:112
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
Definition: pwc-ioctl.h:157
#define PLAYER_MSGTYPE_REQ
A request message.
Definition: player.h:106
#define PLAYER_MSGTYPE_RESP_NACK
A negative response message.
Definition: player.h:125
Definition: pwc-ioctl.h:184
Class for loading configuration file information.
Definition: configfile.h:197
Definition: pwc-ioctl.h:134
An autopointer for the message queue.
Definition: message.h:74
Definition: pwc-ioctl.h:141
Definition: pwc-ioctl.h:88
Definition: pwc-ioctl.h:285
Base class for drivers which oeprate with a thread.
Definition: driver.h:553
Definition: pwc-ioctl.h:166
Definition: pwc-ioctl.h:172
#define PLAYER_MSGTYPE_CMD
A command message.
Definition: player.h:99
Definition: pwc-ioctl.h:126
Base class for all drivers.
Definition: driver.h:109
Definition: pwc-ioctl.h:94
#define PLAYER_MSGQUEUE_DEFAULT_MAXLEN
Default maximum length for a message queue.
Definition: player.h:76