mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 11:46:30 +00:00
patch motion with mmal updates for greyworld AWB mode
motion could use a full upgrade of the mmal lib. Tried the last userland files but got stuck at some point. Compiling error I couldn't fix. Will be waiting for someone capable of doing this.
This commit is contained in:
parent
73ba459c35
commit
99d1e2534b
35
package/motion/0001-enable-awb-greyworld.patch
Normal file
35
package/motion/0001-enable-awb-greyworld.patch
Normal file
@ -0,0 +1,35 @@
|
||||
diff --git a/raspicam/RaspiCamControl.c b/raspicam/RaspiCamControl.c
|
||||
index 073d657..ad0e405 100644
|
||||
--- a/raspicam/RaspiCamControl.c
|
||||
+++ b/raspicam/RaspiCamControl.c
|
||||
@@ -73,7 +73,8 @@ static XREF_T awb_map[] =
|
||||
{"fluorescent", MMAL_PARAM_AWBMODE_FLUORESCENT},
|
||||
{"incandescent", MMAL_PARAM_AWBMODE_INCANDESCENT},
|
||||
{"flash", MMAL_PARAM_AWBMODE_FLASH},
|
||||
- {"horizon", MMAL_PARAM_AWBMODE_HORIZON}
|
||||
+ {"horizon", MMAL_PARAM_AWBMODE_HORIZON},
|
||||
+ {"greyworld", MMAL_PARAM_AWBMODE_GREYWORLD}
|
||||
};
|
||||
|
||||
static const int awb_map_size = sizeof(awb_map) / sizeof(awb_map[0]);
|
||||
@@ -1196,6 +1197,7 @@ int raspicamcontrol_set_exposure_mode(MMAL_COMPONENT_T *camera, MMAL_PARAM_EXPOS
|
||||
* - MMAL_PARAM_AWBMODE_INCANDESCENT,
|
||||
* - MMAL_PARAM_AWBMODE_FLASH,
|
||||
* - MMAL_PARAM_AWBMODE_HORIZON,
|
||||
+ * - MMAL_PARAM_AWBMODE_GREYWORLD,
|
||||
* @return 0 if successful, non-zero if any parameters out of range
|
||||
*/
|
||||
int raspicamcontrol_set_awb_mode(MMAL_COMPONENT_T *camera, MMAL_PARAM_AWBMODE_T awb_mode)
|
||||
diff --git a/raspicam/RaspiCamControl.h b/raspicam/RaspiCamControl.h
|
||||
index f4c189a..e7a847f 100644
|
||||
--- a/raspicam/RaspiCamControl.h
|
||||
+++ b/raspicam/RaspiCamControl.h
|
||||
@@ -57,6 +57,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
MMAL_PARAM_AWBMODE_INCANDESCENT,
|
||||
MMAL_PARAM_AWBMODE_FLASH,
|
||||
MMAL_PARAM_AWBMODE_HORIZON,
|
||||
+ MMAL_PARAM_AWBMODE_GREYWORLD,
|
||||
*
|
||||
* Image FX
|
||||
MMAL_PARAM_IMAGEFX_NONE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user