|
@@ -30,13 +30,24 @@ class CCamera
|
|
|
{
|
|
{
|
|
|
protected:
|
|
protected:
|
|
|
SemaphoreHandle_t m_cameraMutex;
|
|
SemaphoreHandle_t m_cameraMutex;
|
|
|
- SemaphoreHandle_t m_framebufferMutex;
|
|
|
|
|
|
|
+ SemaphoreHandle_t m_cameraOperationMutex;
|
|
|
bool m_driverInitialized;
|
|
bool m_driverInitialized;
|
|
|
bool m_temporarySettingsActive;
|
|
bool m_temporarySettingsActive;
|
|
|
bool m_previewCapturePending;
|
|
bool m_previewCapturePending;
|
|
|
int m_previewCaptureDelayMs;
|
|
int m_previewCaptureDelayMs;
|
|
|
|
|
+ uint32_t m_captureFlashUsers;
|
|
|
|
|
+ uint32_t m_captureStatusLedUsers;
|
|
|
|
|
+ bool m_manualFlashOn;
|
|
|
|
|
+ bool m_manualStatusLedOn;
|
|
|
std::vector<std::string> m_demoFiles;
|
|
std::vector<std::string> m_demoFiles;
|
|
|
|
|
|
|
|
|
|
+ void SetCaptureFlashActive(bool active);
|
|
|
|
|
+ void SetCaptureStatusLedActive(bool active);
|
|
|
|
|
+ void UpdateFlashOutputLocked(void);
|
|
|
|
|
+ void UpdateStatusLedOutputLocked(void);
|
|
|
|
|
+
|
|
|
|
|
+ friend class ScopedCameraCaptureIndicators;
|
|
|
|
|
+
|
|
|
void ledc_init(void);
|
|
void ledc_init(void);
|
|
|
bool loadNextDemoImage(uint8_t **data, size_t *length);
|
|
bool loadNextDemoImage(uint8_t **data, size_t *length);
|
|
|
long GetFileSize(std::string filename);
|
|
long GetFileSize(std::string filename);
|