X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=resize_effect.cpp;h=5fd761a7acee1f55cfc0cd78c1a9e10352d0e576;hp=e701d71df7cb53fa890fc7f8aebd4ff18bff507a;hb=cef6dcbc9ebaceb7b0cb47d6a519cb08a390c358;hpb=e9d9fc790abdf093176a0314f4588c6b8146e5a2 diff --git a/resize_effect.cpp b/resize_effect.cpp index e701d71..5fd761a 100644 --- a/resize_effect.cpp +++ b/resize_effect.cpp @@ -1,6 +1,10 @@ #include "resize_effect.h" #include "util.h" +using namespace std; + +namespace movit { + ResizeEffect::ResizeEffect() : width(1280), height(720) { @@ -8,13 +12,15 @@ ResizeEffect::ResizeEffect() register_int("height", &height); } -std::string ResizeEffect::output_fragment_shader() +string ResizeEffect::output_fragment_shader() { return read_file("identity.frag"); } -void ResizeEffect::get_output_size(unsigned *width, unsigned *height) const +void ResizeEffect::get_output_size(unsigned *width, unsigned *height, unsigned *virtual_width, unsigned *virtual_height) const { - *width = this->width; - *height = this->height; + *virtual_width = *width = this->width; + *virtual_height = *height = this->height; } + +} // namespace movit