Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-09-17 12:38:23 +0300
committerPaul B Mahol <onemda@gmail.com>2015-09-22 23:07:36 +0300
commited4257de2d74ce5e5ae77ae96d58c58f1bbaeacd (patch)
tree0f2f957ccf4856bcbc1d1a6c1553f28a6f1dad1f /libavfilter/af_sidechaincompress.c
parent31623e9d1ea960035cee59839e016397a559dab3 (diff)
avfilter: add agate filter
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/af_sidechaincompress.c')
-rw-r--r--libavfilter/af_sidechaincompress.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/libavfilter/af_sidechaincompress.c b/libavfilter/af_sidechaincompress.c
index 40ffca6dc3..b8a81fc0bb 100644
--- a/libavfilter/af_sidechaincompress.c
+++ b/libavfilter/af_sidechaincompress.c
@@ -32,6 +32,7 @@
#include "audio.h"
#include "avfilter.h"
#include "formats.h"
+#include "hermite.h"
#include "internal.h"
typedef struct SidechainCompressContext {
@@ -90,29 +91,6 @@ static av_cold int init(AVFilterContext *ctx)
return 0;
}
-static inline double hermite_interpolation(double x, double x0, double x1,
- double p0, double p1,
- double m0, double m1)
-{
- double width = x1 - x0;
- double t = (x - x0) / width;
- double t2, t3;
- double ct0, ct1, ct2, ct3;
-
- m0 *= width;
- m1 *= width;
-
- t2 = t*t;
- t3 = t2*t;
- ct0 = p0;
- ct1 = m0;
-
- ct2 = -3 * p0 - 2 * m0 + 3 * p1 - m1;
- ct3 = 2 * p0 + m0 - 2 * p1 + m1;
-
- return ct3 * t3 + ct2 * t2 + ct1 * t + ct0;
-}
-
// A fake infinity value (because real infinity may break some hosts)
#define FAKE_INFINITY (65536.0 * 65536.0)