[FFmpeg-devel] [PATCH] swr: add prototypes for resample dsp functions

Michael Niedermayer michaelni at gmx.at
Sun Jun 15 00:05:58 CEST 2014


On Sat, Jun 14, 2014 at 06:32:55PM -0300, James Almer wrote:
> Also remove obsolete prototypes in x86/resample_mmx.h
> Should fix compilation failures with MSVC and any other compiler
> without inline asm support.
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> Ronald's ARCH_X86_32 patch can be applied after this.
> 
>  libswresample/resample_dsp.c         |  9 +++++++++
>  libswresample/resample_template.c    | 12 ++++++------
>  libswresample/x86/resample_mmx.h     |  6 ------
>  libswresample/x86/resample_x86_dsp.c | 11 +++++++++++
>  4 files changed, 26 insertions(+), 12 deletions(-)
> 
> diff --git a/libswresample/resample_dsp.c b/libswresample/resample_dsp.c
> index a48a5a9..79cecad 100644
> --- a/libswresample/resample_dsp.c
> +++ b/libswresample/resample_dsp.c
> @@ -27,6 +27,15 @@
>  
>  #include "resample.h"
>  
> +int resample_common_int16 (ResampleContext *c, int16_t *dst, const int16_t *src, int n, int update_ctx);
> +int resample_common_int32 (ResampleContext *c, int32_t *dst, const int32_t *src, int n, int update_ctx);
> +int resample_common_float (ResampleContext *c,   float *dst, const   float *src, int n, int update_ctx);
> +int resample_common_double(ResampleContext *c,  double *dst, const  double *src, int n, int update_ctx);
> +int resample_linear_int16 (ResampleContext *c, int16_t *dst, const int16_t *src, int n, int update_ctx);
> +int resample_linear_int32 (ResampleContext *c, int32_t *dst, const int32_t *src, int n, int update_ctx);
> +int resample_linear_float (ResampleContext *c,   float *dst, const   float *src, int n, int update_ctx);
> +int resample_linear_double(ResampleContext *c,  double *dst, const  double *src, int n, int update_ctx);

global functions without prefixes can cause conflicts
with other libs or the user application

internal swr functions which cannot be static should have a swri
prefix

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140615/4db7c4b0/attachment.asc>


More information about the ffmpeg-devel mailing list