]> git.sesse.net Git - movit/blob - resize_effect.cpp
Add some asserts to EffectChain::execute_phase, so that we do not inadvertedly insert...
[movit] / resize_effect.cpp
1 #include "resize_effect.h"
2 #include "util.h"
3
4 using namespace std;
5
6 namespace movit {
7
8 ResizeEffect::ResizeEffect()
9         : width(1280), height(720)
10 {
11         register_int("width", &width);
12         register_int("height", &height);
13 }
14
15 string ResizeEffect::output_fragment_shader()
16 {
17         return read_file("identity.frag");
18 }
19
20 void ResizeEffect::get_output_size(unsigned *width, unsigned *height, unsigned *virtual_width, unsigned *virtual_height) const
21 {
22         *virtual_width = *width = this->width;
23         *virtual_height = *height = this->height;
24 }
25
26 }  // namespace movit