]> git.sesse.net Git - movit/blobdiff - resample_effect.h
Add support for offsets in ResampleEffect.
[movit] / resample_effect.h
index 44587bf22f9200a1f79147c1ced2b9bf40e82dbb..c52a973c18b055c2927896f9e585ea3de9bfa4d7 100644 (file)
@@ -15,7 +15,7 @@
 // which is what the user is intended to use, instantiates two copies of
 // SingleResamplePassEffect behind the scenes).
 
-#include <GL/glew.h>
+#include <epoxy/gl.h>
 #include <assert.h>
 #include <stddef.h>
 #include <string>
@@ -98,7 +98,9 @@ private:
        Direction direction;
        GLuint texnum;
        int input_width, input_height, output_width, output_height;
+       float offset;
        int last_input_width, last_input_height, last_output_width, last_output_height;
+       float last_offset;
        int src_bilinear_samples, num_loops;
        float slice_height;
 };