diff options
author | Paul B Mahol <onemda@gmail.com> | 2014-06-26 12:54:23 +0400 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2014-07-03 11:34:11 +0400 |
commit | 7e8c1f0c38791ba78d170189f4c33e1aac9ee7c0 (patch) | |
tree | 70a9a0509246659606db0a39eeff41e37a2872af /libavfilter/generate_wave_table.h | |
parent | 126524720661a9adddec758e94729007a96f07f7 (diff) |
avfilter/af_aphaser: move wave table generation code into separate file
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/generate_wave_table.h')
-rw-r--r-- | libavfilter/generate_wave_table.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libavfilter/generate_wave_table.h b/libavfilter/generate_wave_table.h new file mode 100644 index 0000000000..37ea2aa799 --- /dev/null +++ b/libavfilter/generate_wave_table.h @@ -0,0 +1,33 @@ +/* + * 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_GENERATE_WAVE_TABLE_H +#define AVFILTER_GENERATE_WAVE_TABLE_H + +enum WaveType { + WAVE_SIN, + WAVE_TRI, + WAVE_NB, +}; + +void ff_generate_wave_table(enum WaveType wave_type, + enum AVSampleFormat sample_fmt, + void *table, int table_size, + double min, double max, double phase); + +#endif /* AVFILTER_GENERATE_WAVE_TABLE_H */ |