X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=resample_effect.h;h=ceae920aa71c98a0799a8423f173bc9e13c25876;hb=11f2afecc201d7c4c845f5782059860ce3209a28;hp=7cd613fb34950d1620bceb257ce66cacd69536a8;hpb=7f1fabb816ee5010be83abf5da58e92429609547;p=movit diff --git a/resample_effect.h b/resample_effect.h index 7cd613f..ceae920 100644 --- a/resample_effect.h +++ b/resample_effect.h @@ -48,6 +48,7 @@ ScalingWeights calculate_scaling_weights(unsigned src_size, unsigned dst_size, f class ResampleEffect : public Effect { public: ResampleEffect(); + ~ResampleEffect(); virtual std::string effect_type_id() const { return "ResampleEffect"; } @@ -72,6 +73,9 @@ private: void update_size(); void update_offset_and_zoom(); + // Both of these are owned by us if owns_effects is true (before finalize()), + // and otherwise owned by the EffectChain. + bool owns_effects; SingleResamplePassEffect *hpass, *vpass; int input_width, input_height, output_width, output_height;