ofxCvPiCam
ofxCvPiCam copied to clipboard
Sending flags to MMAL / PiCapture SD1
Hi there, I recently got a very cool board for my Pi called PiCapture SD1 (by Lintest) which takes analogue composite video, s-video or RGB video inputs via the CSI port.
Happy to find that it works out the box as a Pi camera through ofxCvPiCam, though by default it launches in "mode 1" which isn't suitable for my needs. Via the CLI I can launch it in "mode 6" (the mode that I need it to launch in) with;
raspivid -md 6
So my question is how could I go about sending these same flags through the addon / OpenFrameworks? ie. something like
void ofxCvPiCam::setMode(int i) {
// ???
}
Many thanks!
Just tried adding this...
int ofxCvPiCam::setMode(int mode){
if (!camera)
return 1;
return mmal_status_to_int(mmal_port_parameter_set_uint32(camera->control, MMAL_PARAMETER_CAMERA_CUSTOM_SENSOR_CONFIG, mode));
}