16 #ifndef SETPWC_FUNCTIONS 17 #define SETPWC_FUNCTIONS 23 #include <sys/ioctl.h> 24 #include <sys/types.h> 28 #define _LINUX_TIME_H 1 29 #include <linux/videodev.h> 31 #include "pwc-ioctl.h" 33 const int SET_PAN = 0;
34 const int SET_TILT = 1;
36 const int GET_PAN = 0;
37 const int GET_TILT = 1;
39 void error_exit(
char *what_ioctl);
41 void check_device(
int *fd);
43 void not_supported(
char *what);
45 void dump_current_settings(
int fd);
47 void query_pan_tilt_status(
int fd,
int *status);
49 void reset_pan_tilt(
int fd,
int what);
51 void get_pan_or_tilt_limits(
int fd,
char what,
int *
min,
int *
max);
53 void set_pan_or_tilt(
int fd,
char what,
int value);
55 void set_pan_and_tilt(
int fd,
int pan,
int tilt);
57 void set_framerate(
int fd,
int framerate);
59 void flash_settings(
int fd);
61 void restore_settings(
int fd);
63 void restore_factory_settings(
int fd);
65 void set_compression_preference(
int fd,
int pref);
67 void set_automatic_gain_control(
int fd,
int pref);
69 void set_shutter_speed(
int fd,
int pref);
71 void set_automatic_white_balance_mode(
int fd,
char *mode);
73 void set_automatic_white_balance_mode_red(
int fd,
int val);
75 void set_automatic_white_balance_mode_blue(
int fd,
int val);
77 void set_automatic_white_balance_speed(
int fd,
int val);
79 void set_automatic_white_balance_delay(
int fd,
int val);
81 void set_led_on_time(
int fd,
int val);
83 void set_led_off_time(
int fd,
int val);
85 void set_sharpness(
int fd,
int val);
87 void set_backlight_compensation(
int fd,
int val);
89 void set_antiflicker_mode(
int fd,
int val);
91 void set_noise_reduction(
int fd,
int val);
T max(T a, T b)
Return the maximum of a, b.
Definition: utility.h:104
T min(T a, T b)
Return the minimum of a, b.
Definition: utility.h:91