MandelVideoGenerator.h 676 B

123456789101112131415161718192021222324252627282930313233343536
  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. };
  16. class MandelVideoGenerator
  17. {
  18. const ExportVideoInfo evi;
  19. public:
  20. MandelVideoGenerator(const ExportVideoInfo& evi);
  21. void generate(void);
  22. private:
  23. Bitmap<RGBColor> overlay(const Bitmap<RGBColor>& outer,
  24. const Bitmap<RGBColor>& inner,
  25. double scale);
  26. };
  27. #endif // MANDELVIDEOGENERATOR_H