summaryrefslogtreecommitdiffstats
path: root/libswresample/resample_template.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2014-07-02 22:16:48 -0300
committerMichael Niedermayer <michaelni@gmx.at>2014-07-04 01:37:41 +0200
commit857cd1f33bcf86005529af2a77f861f884327be5 (patch)
tree519ce6e41cfa927c419131481d509c85b6f20eec /libswresample/resample_template.c
parent5c65aed7fdfba6d5488bae4b50b9df8829587818 (diff)
downloadffmpeg-streaming-857cd1f33bcf86005529af2a77f861f884327be5.zip
ffmpeg-streaming-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_template.c')
-rw-r--r--libswresample/resample_template.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/libswresample/resample_template.c b/libswresample/resample_template.c
index ab546f1..069b19c 100644
--- a/libswresample/resample_template.c
+++ b/libswresample/resample_template.c
@@ -70,9 +70,11 @@
#endif
-static void RENAME(resample_one)(DELEM *dst, const DELEM *src,
+static void RENAME(resample_one)(void *dest, const void *source,
int dst_size, int64_t index2, int64_t incr)
{
+ DELEM *dst = dest;
+ const DELEM *src = source;
int dst_index;
for (dst_index = 0; dst_index < dst_size; dst_index++) {
@@ -82,9 +84,11 @@ static void RENAME(resample_one)(DELEM *dst, const DELEM *src,
}
static int RENAME(resample_common)(ResampleContext *c,
- DELEM *dst, const DELEM *src,
+ void *dest, const void *source,
int n, int update_ctx)
{
+ DELEM *dst = dest;
+ const DELEM *src = source;
int dst_index;
int index= c->index;
int frac= c->frac;
@@ -120,9 +124,11 @@ static int RENAME(resample_common)(ResampleContext *c,
}
static int RENAME(resample_linear)(ResampleContext *c,
- DELEM *dst, const DELEM *src,
+ void *dest, const void *source,
int n, int update_ctx)
{
+ DELEM *dst = dest;
+ const DELEM *src = source;
int dst_index;
int index= c->index;
int frac= c->frac;
OpenPOWER on IntegriCloud