diff options
author | James Almer <jamrial@gmail.com> | 2014-07-02 22:16:48 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-04 01:37:41 +0200 |
commit | 857cd1f33bcf86005529af2a77f861f884327be5 (patch) | |
tree | 519ce6e41cfa927c419131481d509c85b6f20eec /libswresample/resample.h | |
parent | 5c65aed7fdfba6d5488bae4b50b9df8829587818 (diff) | |
download | ffmpeg-857cd1f33bcf86005529af2a77f861f884327be5.tar.gz |
swr: initialize only the necessary resample dsp functions
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/resample.h')
-rw-r--r-- | libswresample/resample.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libswresample/resample.h b/libswresample/resample.h index bf00175d79..99a89b7945 100644 --- a/libswresample/resample.h +++ b/libswresample/resample.h @@ -27,11 +27,6 @@ #include "swresample_internal.h" -typedef void (*resample_one_fn)(uint8_t *dst, const uint8_t *src, - int n, int64_t index, int64_t incr); -typedef int (*resample_fn)(struct ResampleContext *c, uint8_t *dst, - const uint8_t *src, int n, int update_ctx); - typedef struct ResampleContext { const AVClass *av_class; uint8_t *filter_bank; @@ -56,9 +51,10 @@ typedef struct ResampleContext { int filter_shift; struct { - resample_one_fn resample_one[AV_SAMPLE_FMT_NB - AV_SAMPLE_FMT_S16P]; - resample_fn resample_common[AV_SAMPLE_FMT_NB - AV_SAMPLE_FMT_S16P]; - resample_fn resample_linear[AV_SAMPLE_FMT_NB - AV_SAMPLE_FMT_S16P]; + void (*resample_one)(void *dst, const void *src, + int n, int64_t index, int64_t incr); + int (*resample)(struct ResampleContext *c, void *dst, + const void *src, int n, int update_ctx); } dsp; } ResampleContext; |