ClassFlowTakeImage.h 1.3 KB

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