MandelVideoGenerator.h 743 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef MANDELVIDEOGENERATOR_H
  2. #define MANDELVIDEOGENERATOR_H
  3. #include "Mandel.h"
  4. #include "Gradient.h"
  5. #include "Bitmap.h"
  6. struct ExportVideoInfo
  7. {
  8. mnd::MandelViewport start;
  9. mnd::MandelViewport end;
  10. Gradient gradient;
  11. int width;
  12. int height;
  13. int maxIterations;
  14. std::string path;
  15. /// bitrate in kbps
  16. int bitrate;
  17. std::string preset;
  18. };
  19. class MandelVideoGenerator
  20. {
  21. const ExportVideoInfo evi;
  22. public:
  23. MandelVideoGenerator(const ExportVideoInfo& evi);
  24. void generate(void);
  25. private:
  26. Bitmap<RGBColor> overlay(const Bitmap<RGBColor>& outer,
  27. const Bitmap<RGBColor>& inner,
  28. double scale);
  29. };
  30. #endif // MANDELVIDEOGENERATOR_H