class ResampleEffect : public Effect {
public:
ResampleEffect();
+ ~ResampleEffect();
virtual std::string effect_type_id() const { return "ResampleEffect"; }
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;
class SingleResamplePassEffect : public Effect {
public:
- // If parent is non-NULL, calls to inform_input_size will be forwarded,
+ // If parent is non-nullptr, calls to inform_input_size will be forwarded,
// so that it can inform both passes about the right input and output
// resolutions.
SingleResamplePassEffect(ResampleEffect *parent);
virtual void inform_added(EffectChain *chain) { this->chain = chain; }
virtual void inform_input_size(unsigned input_num, unsigned width, unsigned height) {
- if (parent != NULL) {
+ if (parent != nullptr) {
parent->inform_input_size(input_num, width, height);
}
}