|
@@ -3,7 +3,6 @@
|
|
|
#ifndef CLASSCONTROLLCAMERA_H
|
|
#ifndef CLASSCONTROLLCAMERA_H
|
|
|
#define CLASSCONTROLLCAMERA_H
|
|
#define CLASSCONTROLLCAMERA_H
|
|
|
|
|
|
|
|
-#include <stdint.h>
|
|
|
|
|
#include <string>
|
|
#include <string>
|
|
|
#include <vector>
|
|
#include <vector>
|
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/FreeRTOS.h"
|
|
@@ -31,25 +30,12 @@ class CCamera
|
|
|
{
|
|
{
|
|
|
protected:
|
|
protected:
|
|
|
SemaphoreHandle_t m_cameraMutex;
|
|
SemaphoreHandle_t m_cameraMutex;
|
|
|
- // Recursive outer lock for sensor configuration and framebuffer lifetime.
|
|
|
|
|
- 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);
|