]> git.sesse.net Git - movit/blobdiff - resample_effect.h
In resizing effects, add the notion of a “virtual output size”.
[movit] / resample_effect.h
index fbe5fc506674197d0433c1c4eed4eedbf3ec9e73..a0ae1a8c156176da9ed41d222cfff4d09318c402 100644 (file)
@@ -70,9 +70,9 @@ public:
        }
        virtual bool changes_output_size() const { return true; }
 
-       virtual void get_output_size(unsigned *width, unsigned *height) const {
-               *width = this->output_width;
-               *height = this->output_height;
+       virtual void get_output_size(unsigned *width, unsigned *height, unsigned *virtual_width, unsigned *virtual_height) const {
+               *virtual_width = *width = this->output_width;
+               *virtual_height = *height = this->output_height;
        }
 
        void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
@@ -87,7 +87,8 @@ private:
        GLuint texnum;
        int input_width, input_height, output_width, output_height;
        int last_input_width, last_input_height, last_output_width, last_output_height;
-       int src_samples;
+       int src_bilinear_samples, num_loops;
+       float slice_height;
 };
 
 #endif // !defined(_RESAMPLE_EFFECT_H)