Last active
August 29, 2015 14:03
-
-
Save psyke83/37bf1f4c694a80d5cc5a to your computer and use it in GitHub Desktop.
cooperve camhal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/libcamera/BcmCamera.cpp b/libcamera/BcmCamera.cpp | |
| index bc7ed35..b1f333c 100644 | |
| --- a/libcamera/BcmCamera.cpp | |
| +++ b/libcamera/BcmCamera.cpp | |
| @@ -388,6 +388,8 @@ void internal_fixup_settings(CameraParameters &settings) | |
| settings.set(CameraParameters::KEY_VIDEO_FRAME_FORMAT, | |
| CameraParameters::PIXEL_FORMAT_YUV420SP); | |
| + qCamera->setFlashSwitch(1); | |
| + | |
| if (!settings.get(CameraParameters::KEY_SUPPORTED_PREVIEW_SIZES)) { | |
| settings.set(CameraParameters::KEY_SUPPORTED_PREVIEW_SIZES, | |
| preview_sizes); | |
| diff --git a/libcamera/CameraHardwareInterface.h b/libcamera/CameraHardwareInterface.h | |
| index d1c918a..e5c0a2b 100644 | |
| --- a/libcamera/CameraHardwareInterface.h | |
| +++ b/libcamera/CameraHardwareInterface.h | |
| @@ -129,6 +129,8 @@ public: | |
| */ | |
| virtual bool msgTypeEnabled(int32_t msgType) = 0; | |
| + virtual bool setFlashSwitch(int32_t arg1) = 0; | |
| + | |
| /** | |
| * Start preview mode. | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment