Просмотр исходного кода

Model camera operation and capture indicator state

SybexXx 1 день назад
Родитель
Сommit
a9d8e0718e
1 измененных файлов с 12 добавлено и 1 удалено
  1. 12 1
      code/components/jomjol_controlcamera/ClassControllCamera.h

+ 12 - 1
code/components/jomjol_controlcamera/ClassControllCamera.h

@@ -30,13 +30,24 @@ class CCamera
 {
 protected:
     SemaphoreHandle_t m_cameraMutex;
-    SemaphoreHandle_t m_framebufferMutex;
+    SemaphoreHandle_t m_cameraOperationMutex;
     bool m_driverInitialized;
     bool m_temporarySettingsActive;
     bool m_previewCapturePending;
     int m_previewCaptureDelayMs;
+    uint32_t m_captureFlashUsers;
+    uint32_t m_captureStatusLedUsers;
+    bool m_manualFlashOn;
+    bool m_manualStatusLedOn;
     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);
     bool loadNextDemoImage(uint8_t **data, size_t *length);
     long GetFileSize(std::string filename);