]> git.sesse.net Git - movit/blobdiff - resize_effect.cpp
In resizing effects, add the notion of a “virtual output size”.
[movit] / resize_effect.cpp
index e701d71df7cb53fa890fc7f8aebd4ff18bff507a..1141fbad571b3285331d39b787ce12f78debcf14 100644 (file)
@@ -13,8 +13,8 @@ std::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;
 }