X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=resample_effect.h;fp=resample_effect.h;h=af6a79f0227ced59522e57ced1a865d7b11a9df0;hp=a8e37e4083dac02a849e9e75a09ee43873d89d05;hb=34509233ba5b71c05f1b85f6fbeadb46719a98f4;hpb=79f0ebd9606956e2988d9485b9d4c701e975c7f1 diff --git a/resample_effect.h b/resample_effect.h index a8e37e4..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);