mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 11:46:30 +00:00
patch for python-picamera library to add the new greyworld AWB mode
until this PR gets merged: https://github.com/waveform80/picamera/pull/576
This commit is contained in:
parent
c596c87532
commit
0bcd7c0363
27
package/python-picamera/0001-enable-awb-greyworld-mode.patch
Normal file
27
package/python-picamera/0001-enable-awb-greyworld-mode.patch
Normal file
@ -0,0 +1,27 @@
|
||||
diff --git a/picamera/camera.py b/picamera/camera.py
|
||||
index 36b1202..a7da186 100644
|
||||
--- a/picamera/camera.py
|
||||
+++ b/picamera/camera.py
|
||||
@@ -274,6 +274,7 @@ class PiCamera(object):
|
||||
'incandescent': mmal.MMAL_PARAM_AWBMODE_INCANDESCENT,
|
||||
'flash': mmal.MMAL_PARAM_AWBMODE_FLASH,
|
||||
'horizon': mmal.MMAL_PARAM_AWBMODE_HORIZON,
|
||||
+ 'greyworld': mmal.MMAL_PARAM_AWBMODE_GREYWORLD,
|
||||
}
|
||||
|
||||
IMAGE_EFFECTS = {
|
||||
diff --git a/picamera/mmal.py b/picamera/mmal.py
|
||||
index 81b059f..82b2b5f 100644
|
||||
--- a/picamera/mmal.py
|
||||
+++ b/picamera/mmal.py
|
||||
@@ -692,7 +692,8 @@ MMAL_PARAM_AWBMODE_T = ct.c_uint32 # enum
|
||||
MMAL_PARAM_AWBMODE_INCANDESCENT,
|
||||
MMAL_PARAM_AWBMODE_FLASH,
|
||||
MMAL_PARAM_AWBMODE_HORIZON,
|
||||
-) = range(10)
|
||||
+ MMAL_PARAM_AWBMODE_GREYWORLD,
|
||||
+) = range(11)
|
||||
MMAL_PARAM_AWBMODE_MAX = 0x7fffffff
|
||||
|
||||
class MMAL_PARAMETER_AWBMODE_T(ct.Structure):
|
||||
|
Loading…
x
Reference in New Issue
Block a user