29 #ifndef RASPICAMCONTROL_H_ 30 #define RASPICAMCONTROL_H_ 32 #include "interface/mmal/mmal.h" 33 #include "interface/mmal/mmal_logging.h" 34 #include "interface/mmal/util/mmal_default_components.h" 35 #include "interface/mmal/util/mmal_util.h" 36 #include "interface/mmal/util/mmal_util_params.h" 37 #include "interface/vmcs_host/vc_vchi_gencmd.h"
MMAL_PARAM_AWBMODE_T awbMode
MMAL_PARAM_COLOURFX_T colourEffects
int raspicamcontrol_set_sharpness(MMAL_COMPONENT_T &camera, int sharpness)
int exposureCompensation
0 or 1 (false or true)
int raspicamcontrol_set_exposure_compensation(MMAL_COMPONENT_T &camera, int exp_comp)
int raspicamcontrol_set_shutter_speed(MMAL_COMPONENT_T &camera, int shutter_speed)
PARAM_FLOAT_RECT_T roi
0 or 1
MMAL_PARAM_IMAGEFX_T imageEffect
int raspicamcontrol_set_brightness(MMAL_COMPONENT_T &camera, int brightness)
int raspicamcontrol_get_contrast(MMAL_COMPONENT_T &camera)
MMAL_PARAM_EXPOSUREMETERINGMODE_T exposureMeterMode
MMAL_PARAM_THUMBNAIL_CONFIG_T raspicamcontrol_get_thumbnail_parameters(MMAL_COMPONENT_T &camera)
int raspicamcontrol_set_video_stabilisation(MMAL_COMPONENT_T &camera, int vstabilisation)
void raspicamcontrol_dump_parameters(const RASPICAM_CAMERA_PARAMETERS ¶ms)
void raspicamcontrol_check_configuration(int min_gpu_mem)
int raspicamcontrol_get_ISO(MMAL_COMPONENT_T &camera)
MMAL_PARAM_AWBMODE_T raspicamcontrol_get_awb_mode(MMAL_COMPONENT_T &camera)
MMAL_PARAM_COLOURFX_T raspicamcontrol_get_colourFX(MMAL_COMPONENT_T &camera)
MMAL_PARAM_EXPOSUREMETERINGMODE_T raspicamcontrol_get_metering_mode(MMAL_COMPONENT_T &camera)
MMAL_PARAM_EXPOSUREMODE_T exposure_mode_from_string(const char *str)
int raspicamcontrol_get_brightness(MMAL_COMPONENT_T &camera)
MMAL_PARAM_EXPOSUREMODE_T raspicamcontrol_get_exposure_mode(MMAL_COMPONENT_T &camera)
int raspicamcontrol_set_exposure_mode(MMAL_COMPONENT_T &camera, MMAL_PARAM_EXPOSUREMODE_T mode)
void raspicamcontrol_set_defaults(RASPICAM_CAMERA_PARAMETERS ¶ms)
int raspicamcontrol_set_ROI(MMAL_COMPONENT_T &camera, PARAM_FLOAT_RECT_T rect)
int raspicamcontrol_set_flips(MMAL_COMPONENT_T &camera, int hflip, int vflip)
int raspicamcontrol_get_video_stabilisation(MMAL_COMPONENT_T &camera)
int raspicamcontrol_set_awb_mode(MMAL_COMPONENT_T &camera, MMAL_PARAM_AWBMODE_T awb_mode)
MMAL_PARAM_EXPOSUREMODE_T exposureMode
-10 to +10 ?
int raspicamcontrol_set_ISO(MMAL_COMPONENT_T &camera, int ISO)
int raspicamcontrol_get_exposure_compensation(MMAL_COMPONENT_T &camera)
struct contain camera settings
int videoStabilisation
TODO : what range?
MMAL_PARAM_AWBMODE_T awb_mode_from_string(const char *str)
int raspicamcontrol_set_all_parameters(MMAL_COMPONENT_T &camera, const RASPICAM_CAMERA_PARAMETERS ¶ms)
int raspicamcontrol_set_rotation(MMAL_COMPONENT_T &camera, int rotation)
int raspicamcontrol_set_imageFX(MMAL_COMPONENT_T &camera, MMAL_PARAM_IMAGEFX_T imageFX)
int raspicamcontrol_set_metering_mode(MMAL_COMPONENT_T &camera, MMAL_PARAM_EXPOSUREMETERINGMODE_T mode)
int raspicamcontrol_get_saturation(MMAL_COMPONENT_T &camera)
int raspicamcontrol_cycle_test(MMAL_COMPONENT_T &camera)
int raspicamcontrol_set_colourFX(MMAL_COMPONENT_T &camera, const MMAL_PARAM_COLOURFX_T *colourFX)
int raspicamcontrol_set_contrast(MMAL_COMPONENT_T &camera, int contrast)
MMAL_PARAMETER_IMAGEFX_PARAMETERS_T imageEffectsParameters
MMAL_PARAM_IMAGEFX_T raspicamcontrol_get_imageFX(MMAL_COMPONENT_T &camera)
int raspicamcontrol_get_sharpness(MMAL_COMPONENT_T &camera)
int brightness
-100 to 100
int raspicamcontrol_set_saturation(MMAL_COMPONENT_T &camera, int saturation)