ClassFlowMakeImage.h 1.0 KB

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