Ray Tracer Common Project
Image rendering program based on the ray tracing technique.
video_ostream.hpp
1 #pragma once
2 
3 
4 #include <string>
5 #include "core/image.hpp"
6 
7 namespace cv{
8  class VideoWriter;
9  class Mat;
10 }
11 
12 namespace rt{
13 
15 public:
16  video_ostream(int width, int height);
17  ~video_ostream();
18 
19  int width() const;
20  int height() const;
21 
22  bool begin(const std::string & filename, int framerate);
23  void write(const rt::image & img);
24  void end();
25 
26 private:
27  cv::VideoWriter *_writer;
28  cv::Mat *_data;
29  int _width;
30  int _height;
31 };
32 
33 }
Definition: video_ostream.hpp:7
Definition: bitmap.cpp:4
Definition: video_ostream.hpp:14
Image surface.
Definition: image.hpp:31