1141fbad571b3285331d39b787ce12f78debcf14
[movit] / resize_effect.cpp
1 #include "resize_effect.h"
2 #include "util.h"
3
4 ResizeEffect::ResizeEffect()
5         : width(1280), height(720)
6 {
7         register_int("width", &width);
8         register_int("height", &height);
9 }
10
11 std::string ResizeEffect::output_fragment_shader()
12 {
13         return read_file("identity.frag");
14 }
15
16 void ResizeEffect::get_output_size(unsigned *width, unsigned *height, unsigned *virtual_width, unsigned *virtual_height) const
17 {
18         *virtual_width = *width = this->width;
19         *virtual_height = *height = this->height;
20 }