[FFmpeg-devel] [PATCH] move H264 mmx2 (bi)weight functions to yasm

Aurelien Jacobs aurel
Wed Sep 1 17:56:41 CEST 2010


On Wed, Sep 01, 2010 at 09:58:51AM -0400, Ronald S. Bultje wrote:
> Hi,
> 
> moves h264 weight/biweight mmx functions to yasm, preceeded by svn cp
> libavcodec/x86/h264_biweight{_sse2,}.asm, should be pretty obvious.
> Code is pretty much identical to what gcc outputs except for one (8x4
> or 4x8, I forgot which) where gcc introduces two jumps right alongside
> each other (as in if y >= h break; jmp start_loop), and a few places
> where it uses more registers than necessary. I'll do speed-tests later
> but don't expect any significant changes.
> 
> Ronald

> Index: ffmpeg-svn/libavcodec/x86/Makefile
> ===================================================================
> --- ffmpeg-svn.orig/libavcodec/x86/Makefile	2010-09-01 09:21:59.000000000 -0400
> +++ ffmpeg-svn/libavcodec/x86/Makefile	2010-09-01 09:22:30.000000000 -0400
> @@ -10,7 +10,7 @@
>  
>  MMX-OBJS-$(CONFIG_H264DSP)             += x86/h264dsp_mmx.o
>  YASM-OBJS-$(CONFIG_H264DSP)            += x86/h264_deblock_sse2.o       \
> -                                          x86/h264_weight_sse2.o        \
> +                                          x86/h264_weight.o        \

Alignment...

Aurel



More information about the ffmpeg-devel mailing list