[FFmpeg-devel] [PATCH] x86/dsputil: port ff_vector_clipf_sse to yasm
Timothy Gu
timothygu99 at gmail.com
Thu May 22 05:41:35 CEST 2014
On Wed, May 21, 2014 at 7:14 PM, James Almer <jamrial at gmail.com> wrote:
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> libavcodec/x86/dsputil.asm | 36 ++++++++++++++++++++++++++++++++++++
> libavcodec/x86/dsputil_init.c | 6 ++----
> libavcodec/x86/dsputil_mmx.c | 33 ---------------------------------
> 3 files changed, 38 insertions(+), 37 deletions(-)
>
> diff --git a/libavcodec/x86/dsputil.asm b/libavcodec/x86/dsputil.asm
> index 747c645..c12c3aa 100644
> --- a/libavcodec/x86/dsputil.asm
> +++ b/libavcodec/x86/dsputil.asm
> @@ -625,3 +625,39 @@ INIT_MMX mmx
> PUT_SIGNED_PIXELS_CLAMPED 0
> INIT_XMM sse2
> PUT_SIGNED_PIXELS_CLAMPED 3
> +
> +INIT_XMM sse
> +%if ARCH_X86_32
> +cglobal vector_clipf, 5,5,6, dst, src, min, max, len
> +%else
> +cglobal vector_clipf, 3,3,6, dst, src, len
> +%endif
Comment the function please.
[...]
Timothy
More information about the ffmpeg-devel
mailing list