Hello, very happy to find the SD1 works out the box and as a Pi camera, thought having problems sending flags via C++.
I’m using OpenFrameworks and an addon called ofxCvPiCam, and by default it launches the camera in what I think is “mode 1”. I’m trying to work out then how to send these flags to the Pi Camera / MMAL through the addon.
Here is an example of a setSaturation method in ofxCvPiCam;
int ofxCvPiCam::setSaturation(int saturation){
int ret = 0;
if (!camera)
return 1;
if (saturation >= -100 && saturation <= 100)
{
MMAL_RATIONAL_T value = {saturation, 100};
ret = mmal_status_to_int(mmal_port_parameter_set_rational(camera->control, MMAL_PARAMETER_SATURATION, value));
}
else
{
ofLogError("Invalid saturation value");
ret = 1;
}
return ret;
}
How would I go about creating something like this?
void ofxCvPiCam::setMode(int i) {
// ???
}
Thanks,
Gilbert