diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-25 01:03:28 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-25 01:17:15 +0200 |
commit | 26953ed2e39d7ffbe5125c901d665a5dddab45dd (patch) | |
tree | 217bd15537d2cb3baa5f701a1b4a249ab1a50df8 /libavresample/resample.h | |
parent | 06e664366a66a373358aacacde8e86348d55bd22 (diff) | |
parent | cae8df78759c2e69257f7fe58842f34c0d98a7ec (diff) | |
download | ffmpeg-26953ed2e39d7ffbe5125c901d665a5dddab45dd.tar.gz |
Merge commit 'cae8df78759c2e69257f7fe58842f34c0d98a7ec'
* commit 'cae8df78759c2e69257f7fe58842f34c0d98a7ec':
lavr: define ResampleContext in resample.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavresample/resample.h')
-rw-r--r-- | libavresample/resample.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libavresample/resample.h b/libavresample/resample.h index 3b56baa5cf..be9f562791 100644 --- a/libavresample/resample.h +++ b/libavresample/resample.h @@ -25,6 +25,35 @@ #include "internal.h" #include "audio_data.h" +struct ResampleContext { + AVAudioResampleContext *avr; + AudioData *buffer; + uint8_t *filter_bank; + int filter_length; + int ideal_dst_incr; + int dst_incr; + unsigned int index; + int frac; + int src_incr; + int compensation_distance; + int phase_shift; + int phase_mask; + int linear; + enum AVResampleFilterType filter_type; + int kaiser_beta; + void (*set_filter)(void *filter, double *tab, int phase, int tap_count); + void (*resample_one)(struct ResampleContext *c, void *dst0, + int dst_index, const void *src0, + unsigned int index, int frac); + void (*resample_nearest)(void *dst0, int dst_index, + const void *src0, unsigned int index); + int padding_size; + int initial_padding_filled; + int initial_padding_samples; + int final_padding_filled; + int final_padding_samples; +}; + /** * Allocate and initialize a ResampleContext. * |