X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=resample_effect.h;h=05ef3656fd94d4dc4f8d6091927200eb7108b082;hp=44587bf22f9200a1f79147c1ced2b9bf40e82dbb;hb=eb11109d6a074541df9b45be127c70d836bc4872;hpb=e9f0fb5e6ae193a5a853ac5aef82927b6a81267a diff --git a/resample_effect.h b/resample_effect.h index 44587bf..05ef365 100644 --- a/resample_effect.h +++ b/resample_effect.h @@ -15,7 +15,7 @@ // which is what the user is intended to use, instantiates two copies of // SingleResamplePassEffect behind the scenes). -#include +#include #include #include #include @@ -53,9 +53,14 @@ public: private: void update_size(); + void update_offset_and_zoom(); SingleResamplePassEffect *hpass, *vpass; int input_width, input_height, output_width, output_height; + + float offset_x, offset_y; + float zoom_x, zoom_y; + float zoom_center_x, zoom_center_y; }; class SingleResamplePassEffect : public Effect { @@ -98,7 +103,9 @@ private: Direction direction; GLuint texnum; int input_width, input_height, output_width, output_height; + float offset, zoom; int last_input_width, last_input_height, last_output_width, last_output_height; + float last_offset, last_zoom; int src_bilinear_samples, num_loops; float slice_height; };