[x264-devel] commit: Faster --me tesa (Jason Garrett-Glaser )

git version control git at videolan.org
Thu Jan 14 05:51:07 CET 2010


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Wed Jan 13 20:16:13 2010 -0500| [918ca1e55351446478d4dcee5936c5843bf79925] | committer: Jason Garrett-Glaser 

Faster --me tesa

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=918ca1e55351446478d4dcee5936c5843bf79925
---

 encoder/me.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/encoder/me.c b/encoder/me.c
index b2a530d..6a01d00 100644
--- a/encoder/me.c
+++ b/encoder/me.c
@@ -652,12 +652,11 @@ me_hex2:
                 }
                 while( nmvsad > limit )
                 {
-                    int bsad = mvsads[0].sad;
                     int bi = 0;
                     for( i=1; i<nmvsad; i++ )
-                        COPY2_IF_GT( bsad, mvsads[i].sad, bi, i );
+                        if( mvsads[i].sad > mvsads[bi].sad )
+                            bi = i;
                     nmvsad--;
-                    mvsads[bi] = mvsads[nmvsad];
                     if( sizeof( mvsad_t ) == sizeof( uint64_t ) )
                         CP64( &mvsads[bi], &mvsads[nmvsad] );
                     else



More information about the x264-devel mailing list