X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=resample_effect.h;h=af6a79f0227ced59522e57ced1a865d7b11a9df0;hp=ceae920aa71c98a0799a8423f173bc9e13c25876;hb=24ebefbbd38538bc85ae94cd3dfbb16a4abf0d98;hpb=11f2afecc201d7c4c845f5782059860ce3209a28 diff --git a/resample_effect.h b/resample_effect.h index ceae920..af6a79f 100644 --- a/resample_effect.h +++ b/resample_effect.h @@ -18,6 +18,7 @@ #include #include #include +#include #include #include "effect.h" @@ -40,8 +41,8 @@ struct ScalingWeights { unsigned dst_samples, num_loops; // Exactly one of these is set. - Tap *bilinear_weights_fp16; - Tap *bilinear_weights_fp32; + std::unique_ptr[]> bilinear_weights_fp16; + std::unique_ptr[]> bilinear_weights_fp32; }; ScalingWeights calculate_scaling_weights(unsigned src_size, unsigned dst_size, float zoom, float offset); @@ -87,7 +88,7 @@ private: 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); @@ -102,7 +103,7 @@ public: 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); } }