29 #ifndef RASPICAMCONTROL_H_
30 #define RASPICAMCONTROL_H_
90 #define ANNOTATE_USER_TEXT 1
91 #define ANNOTATE_APP_TEXT 2
93 #define ANNOTATE_DATE_TEXT 4
96 #define ANNOTATE_TIME_TEXT 8
98 #define ANNOTATE_SHUTTER_SETTINGS 16
99 #define ANNOTATE_CAF_SETTINGS 32
100 #define ANNOTATE_GAIN_SETTINGS 64
101 #define ANNOTATE_LENS_SETTINGS 128
102 #define ANNOTATE_MOTION_SETTINGS 256
103 #define ANNOTATE_FRAME_NUMBER 512
104 #define ANNOTATE_BLACK_BACKGROUND 1024
140 MMAL_PARAM_EXPOSUREMETERINGMODE_T exposureMeterMode;
141 MMAL_PARAM_AWBMODE_T awbMode;
142 MMAL_PARAM_IMAGEFX_T imageEffect;
143 MMAL_PARAMETER_IMAGEFX_PARAMETERS_T imageEffectsParameters;
153 MMAL_BOOL_T stats_pass;
155 char annotate_string[MMAL_CAMERA_ANNOTATE_MAX_TEXT_LEN_V2];
160 void raspicamcontrol_check_configuration(
int min_gpu_mem);
163 void raspicamcontrol_display_help();
164 int raspicamcontrol_cycle_test(MMAL_COMPONENT_T *camera);
172 void raspicamcontrol_check_configuration(
int min_gpu_mem);
175 int raspicamcontrol_set_saturation(MMAL_COMPONENT_T *camera,
int saturation);
176 int raspicamcontrol_set_sharpness(MMAL_COMPONENT_T *camera,
int sharpness);
177 int raspicamcontrol_set_contrast(MMAL_COMPONENT_T *camera,
int contrast);
178 int raspicamcontrol_set_brightness(MMAL_COMPONENT_T *camera,
int brightness);
179 int raspicamcontrol_set_ISO(MMAL_COMPONENT_T *camera,
int ISO);
180 int raspicamcontrol_set_metering_mode(MMAL_COMPONENT_T *camera, MMAL_PARAM_EXPOSUREMETERINGMODE_T mode);
181 int raspicamcontrol_set_video_stabilisation(MMAL_COMPONENT_T *camera,
int vstabilisation);
182 int raspicamcontrol_set_exposure_compensation(MMAL_COMPONENT_T *camera,
int exp_comp);
183 int raspicamcontrol_set_exposure_mode(MMAL_COMPONENT_T *camera, MMAL_PARAM_EXPOSUREMODE_T mode);
184 int raspicamcontrol_set_awb_mode(MMAL_COMPONENT_T *camera, MMAL_PARAM_AWBMODE_T awb_mode);
185 int raspicamcontrol_set_awb_gains(MMAL_COMPONENT_T *camera,
float r_gain,
float b_gain);
186 int raspicamcontrol_set_imageFX(MMAL_COMPONENT_T *camera, MMAL_PARAM_IMAGEFX_T imageFX);
188 int raspicamcontrol_set_rotation(MMAL_COMPONENT_T *camera,
int rotation);
189 int raspicamcontrol_set_flips(MMAL_COMPONENT_T *camera,
int hflip,
int vflip);
191 int raspicamcontrol_set_shutter_speed(MMAL_COMPONENT_T *camera,
int speed_ms);
192 int raspicamcontrol_set_DRC(MMAL_COMPONENT_T *camera, MMAL_PARAMETER_DRC_STRENGTH_T strength);
193 int raspicamcontrol_set_stats_pass(MMAL_COMPONENT_T *camera,
int stats_pass);
194 int raspicamcontrol_set_annotate(MMAL_COMPONENT_T *camera,
const int bitmask,
const char *
string);
197 int raspicamcontrol_get_saturation(MMAL_COMPONENT_T *camera);
198 int raspicamcontrol_get_sharpness(MMAL_COMPONENT_T *camera);
199 int raspicamcontrol_get_contrast(MMAL_COMPONENT_T *camera);
200 int raspicamcontrol_get_brightness(MMAL_COMPONENT_T *camera);
201 int raspicamcontrol_get_ISO(MMAL_COMPONENT_T *camera);
202 MMAL_PARAM_EXPOSUREMETERINGMODE_T raspicamcontrol_get_metering_mode(MMAL_COMPONENT_T *camera);
203 int raspicamcontrol_get_video_stabilisation(MMAL_COMPONENT_T *camera);
204 int raspicamcontrol_get_exposure_compensation(MMAL_COMPONENT_T *camera);
206 MMAL_PARAM_EXPOSUREMODE_T raspicamcontrol_get_exposure_mode(MMAL_COMPONENT_T *camera);
207 MMAL_PARAM_AWBMODE_T raspicamcontrol_get_awb_mode(MMAL_COMPONENT_T *camera);
208 MMAL_PARAM_IMAGEFX_T raspicamcontrol_get_imageFX(MMAL_COMPONENT_T *camera);
int ISO
-100 to 100
Definition: RaspiCamControl.h:136
MMAL_PARAMETER_DRC_STRENGTH_T drc_level
AWB blue gain.
Definition: RaspiCamControl.h:152
int brightness
-100 to 100
Definition: RaspiCamControl.h:134
int exposureCompensation
0 or 1 (false or true)
Definition: RaspiCamControl.h:138
Definition: RaspiCamControl.h:121
PARAM_FLOAT_RECT_T roi
0 or 1
Definition: RaspiCamControl.h:148
MMAL_PARAM_EXPOSUREMODE_T exposureMode
-10 to +10 ?
Definition: RaspiCamControl.h:139
Definition: RaspiCamControl.h:108
int hflip
0-359
Definition: RaspiCamControl.h:146
float awb_gains_r
0 = auto, otherwise the shutter speed in ms
Definition: RaspiCamControl.h:150
Definition: RaspiCamControl.h:114
int u
Turn colourFX on or off.
Definition: RaspiCamControl.h:111
int enable_annotate
Stills capture statistics pass on/off.
Definition: RaspiCamControl.h:154
int videoStabilisation
TODO : what range?
Definition: RaspiCamControl.h:137
struct contain camera settings
Definition: RaspiCamControl.h:130
int saturation
0 to 100
Definition: RaspiCamControl.h:135
int contrast
-100 to 100
Definition: RaspiCamControl.h:133
int shutter_speed
region of interest to use on the sensor. Normalised [0,1] values in the rect
Definition: RaspiCamControl.h:149
float awb_gains_b
AWB red gain.
Definition: RaspiCamControl.h:151
int vflip
0 or 1
Definition: RaspiCamControl.h:147