Sfoglia il codice sorgente

working on video export

Nicolas Winkler 4 anni fa
parent
commit
26d16ba504

+ 8 - 0
libalmond/include/MandelVideoGenerator.h

@@ -5,6 +5,7 @@
 #include "VideoStream.h"
 #include "Gradient.h"
 #include "Bitmap.h"
+#include "VideoRecipe.h"
 #include <functional>
 
 struct ExportVideoInfo
@@ -61,4 +62,11 @@ private:
                              double scale, double oversizeFactor);
 };
 
+
+namespace alm
+{
+    void exportVideo(const VideoRecipe& vr, const std::string& path);
+}
+
+
 #endif // MANDELVIDEOGENERATOR_H

+ 5 - 1
libalmond/include/VideoRecipe.h

@@ -38,10 +38,14 @@ struct alm::VideoPoint
 };
 
 
-class alm::VideoRecipe
+struct alm::VideoRecipe
 {
     int width;
     int height;
+
+    float fps;
+
+    std::vector<VideoPoint> nodes;
 };
 
 #endif // ALMOND_VIDEORECIPE_H

+ 10 - 0
libalmond/src/MandelVideoGenerator.cpp

@@ -211,3 +211,13 @@ Bitmap<RGBColor> MandelVideoGenerator::overlay(const Bitmap<RGBColor>& outer,
 
     return ret;
 }
+
+
+
+namespace alm
+{
+void exportVideo(const alm::VideoRecipe& vr, const std::string& path)
+{
+
+}
+}