13 class MovieStreamerWorker;
18 void setFilename(std::string filename);
19 std::string getFilename()
const;
21 void addNewImageFrame(
const uchar* data,
int width,
int height);
22 void setGrayscale(
bool grayscale);
23 bool getGrayscale()
const;
24 void setFinished(
bool finished);
25 int getFramesAdded()
const;
27 void loadAttributes()
override;
32 void generateStream()
override {};
34 std::string mFilename;
35 bool mGrayscale =
true;
36 bool m_finished =
false;
37 int64_t m_framesAdded = 0;
38 std::chrono::high_resolution_clock::time_point m_startTime;
41 std::shared_ptr<Image> m_currentImage;
56 void error(QString err);
59 std::unique_ptr<QMediaPlayer> m_player;
60 std::unique_ptr<VideoSurface> m_myVideoSurface;