Ray Tracer Common Project
Image rendering program based on the ray tracing technique.
sources
scene
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
14
class
video_ostream
{
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
}
cv
Definition:
video_ostream.hpp:7
rt
Definition:
bitmap.cpp:4
rt::video_ostream
Definition:
video_ostream.hpp:14
rt::image
Image surface.
Definition:
image.hpp:31
Generated on Fri Jan 26 2018 17:51:57 for Ray Tracer Common Project by
1.8.15