diff options
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; |