ClassFlowMakeImage.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #pragma once
  2. #ifndef CLASSFFLOWMAKEIMAGE_H
  3. #define CLASSFFLOWMAKEIMAGE_H
  4. #include "ClassFlowImage.h"
  5. #include "ClassControllCamera.h"
  6. #include "../../include/defines.h"
  7. #include <string>
  8. class ClassFlowMakeImage :
  9. public ClassFlowImage
  10. {
  11. protected:
  12. float waitbeforepicture;
  13. float waitbeforepicture_store;
  14. framesize_t ImageSize;
  15. bool isImageSize;
  16. int ImageQuality;
  17. time_t TimeImageTaken;
  18. string namerawimage;
  19. int image_height, image_width;
  20. bool SaveAllFiles;
  21. bool FixedExposure;
  22. void CopyFile(string input, string output);
  23. esp_err_t camera_capture();
  24. void takePictureWithFlash(int flash_duration);
  25. void SetInitialParameter(void);
  26. public:
  27. CImageBasis *rawImage;
  28. ClassFlowMakeImage(std::vector<ClassFlow*>* lfc);
  29. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  30. bool doFlow(string time);
  31. string getHTMLSingleStep(string host);
  32. time_t getTimeImageTaken();
  33. string name(){return "ClassFlowMakeImage";};
  34. ImageData* SendRawImage();
  35. esp_err_t SendRawJPG(httpd_req_t *req);
  36. ~ClassFlowMakeImage(void);
  37. };
  38. #endif //CLASSFFLOWMAKEIMAGE_H