diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-01-09 13:33:02 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-01-10 21:49:47 +0100 |
commit | dcae5ba322fcbd177b31bb5a26009fd6d4911ef4 (patch) | |
tree | d1a31e6e6d484a7a5d000395c0615a4e20d71299 /libavfilter/af_anlmdndsp.h | |
parent | 02b6d1dd630633ae61f1fe0b46f974a53b802690 (diff) | |
download | ffmpeg-dcae5ba322fcbd177b31bb5a26009fd6d4911ef4.tar.gz |
avfilter: add anlmdn filter x86 SIMD optimizations
Diffstat (limited to 'libavfilter/af_anlmdndsp.h')
-rw-r--r-- | libavfilter/af_anlmdndsp.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libavfilter/af_anlmdndsp.h b/libavfilter/af_anlmdndsp.h new file mode 100644 index 0000000000..d8f5136cd8 --- /dev/null +++ b/libavfilter/af_anlmdndsp.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2019 Paul B Mahol + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef AVFILTER_ANLMDNDSP_H +#define AVFILTER_ANLMDNDSP_H + +#include "libavutil/common.h" + +#include "audio.h" +#include "avfilter.h" +#include "formats.h" +#include "internal.h" + +typedef struct AudioNLMDNDSPContext { + float (*compute_distance_ssd)(const float *f1, const float *f2, ptrdiff_t K); + void (*compute_cache)(float *cache, const float *f, ptrdiff_t S, ptrdiff_t K, + ptrdiff_t i, ptrdiff_t jj); +} AudioNLMDNDSPContext; + +void ff_anlmdn_init(AudioNLMDNDSPContext *s); +void ff_anlmdn_init_x86(AudioNLMDNDSPContext *s); + +#endif /* AVFILTER_ANLMDNDSP_H */ |