Skip to content
Snippets Groups Projects
Commit b5f0eac0 authored by James Almer's avatar James Almer Committed by Michael Niedermayer
Browse files

swr: rename swresample_dsp init functions to swri_resample_dsp


The swresample_ prefix is not for internal functions

Signed-off-by: default avatarJames Almer <jamrial@gmail.com>
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 1619a0e2
No related branches found
No related tags found
No related merge requests found
...@@ -238,7 +238,7 @@ static ResampleContext *resample_init(ResampleContext *c, int out_rate, int in_r ...@@ -238,7 +238,7 @@ static ResampleContext *resample_init(ResampleContext *c, int out_rate, int in_r
c->index= -phase_count*((c->filter_length-1)/2); c->index= -phase_count*((c->filter_length-1)/2);
c->frac= 0; c->frac= 0;
swresample_dsp_init(c); swri_resample_dsp_init(c);
return c; return c;
error: error:
......
...@@ -62,7 +62,7 @@ typedef struct ResampleContext { ...@@ -62,7 +62,7 @@ typedef struct ResampleContext {
} dsp; } dsp;
} ResampleContext; } ResampleContext;
void swresample_dsp_init(ResampleContext *c); void swri_resample_dsp_init(ResampleContext *c);
void swresample_dsp_x86_init(ResampleContext *c); void swri_resample_dsp_x86_init(ResampleContext *c);
#endif /* SWRESAMPLE_RESAMPLE_H */ #endif /* SWRESAMPLE_RESAMPLE_H */
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include "resample_template.c" #include "resample_template.c"
#undef TEMPLATE_RESAMPLE_DBL #undef TEMPLATE_RESAMPLE_DBL
void swresample_dsp_init(ResampleContext *c) void swri_resample_dsp_init(ResampleContext *c)
{ {
#define FNIDX(fmt) (AV_SAMPLE_FMT_##fmt - AV_SAMPLE_FMT_S16P) #define FNIDX(fmt) (AV_SAMPLE_FMT_##fmt - AV_SAMPLE_FMT_S16P)
c->dsp.resample_one[FNIDX(S16P)] = (resample_one_fn) resample_one_int16; c->dsp.resample_one[FNIDX(S16P)] = (resample_one_fn) resample_one_int16;
...@@ -61,5 +61,5 @@ void swresample_dsp_init(ResampleContext *c) ...@@ -61,5 +61,5 @@ void swresample_dsp_init(ResampleContext *c)
c->dsp.resample_linear[FNIDX(FLTP)] = (resample_fn) resample_linear_float; c->dsp.resample_linear[FNIDX(FLTP)] = (resample_fn) resample_linear_float;
c->dsp.resample_linear[FNIDX(DBLP)] = (resample_fn) resample_linear_double; c->dsp.resample_linear[FNIDX(DBLP)] = (resample_fn) resample_linear_double;
if (ARCH_X86) swresample_dsp_x86_init(c); if (ARCH_X86) swri_resample_dsp_x86_init(c);
} }
...@@ -42,7 +42,7 @@ RESAMPLE_FUNCS(float, fma3); ...@@ -42,7 +42,7 @@ RESAMPLE_FUNCS(float, fma3);
RESAMPLE_FUNCS(float, fma4); RESAMPLE_FUNCS(float, fma4);
RESAMPLE_FUNCS(double, sse2); RESAMPLE_FUNCS(double, sse2);
void swresample_dsp_x86_init(ResampleContext *c) void swri_resample_dsp_x86_init(ResampleContext *c)
{ {
int av_unused mm_flags = av_get_cpu_flags(); int av_unused mm_flags = av_get_cpu_flags();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment