X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=resize_effect.cpp;h=5fd761a7acee1f55cfc0cd78c1a9e10352d0e576;hp=1141fbad571b3285331d39b787ce12f78debcf14;hb=cef6dcbc9ebaceb7b0cb47d6a519cb08a390c358;hpb=2322070a3dbeb6b46b39cca07a0fbf20e95f5468 diff --git a/resize_effect.cpp b/resize_effect.cpp index 1141fba..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,7 +12,7 @@ ResizeEffect::ResizeEffect() register_int("height", &height); } -std::string ResizeEffect::output_fragment_shader() +string ResizeEffect::output_fragment_shader() { return read_file("identity.frag"); } @@ -18,3 +22,5 @@ void ResizeEffect::get_output_size(unsigned *width, unsigned *height, unsigned * *virtual_width = *width = this->width; *virtual_height = *height = this->height; } + +} // namespace movit