[x264-devel] commit: Avoid redundant MV prediction in duplicate refs ( Jason Garrett-Glaser )

git at videolan.org git at videolan.org
Sun Mar 28 04:44:35 CEST 2010


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Thu Mar 25 14:46:24 2010 -0700| [a76ac874ae45698c7e3354200e48ac181baed499] | committer: Jason Garrett-Glaser 

Avoid redundant MV prediction in duplicate refs

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

 encoder/analyse.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/encoder/analyse.c b/encoder/analyse.c
index 38f6ee4..16ac472 100644
--- a/encoder/analyse.c
+++ b/encoder/analyse.c
@@ -1127,7 +1127,6 @@ static void x264_mb_analyse_inter_p16x16( x264_t *h, x264_mb_analysis_t *a )
         LOAD_WPELS( &m, h->mb.pic.p_fref_w[i_ref], 0, i_ref, 0, 0 );
 
         x264_mb_predict_mv_16x16( h, 0, i_ref, m.mvp );
-        x264_mb_predict_mv_ref16x16( h, 0, i_ref, mvc, &i_mvc );
 
         if( h->mb.ref_blind_dupe == i_ref )
         {
@@ -1135,7 +1134,10 @@ static void x264_mb_analyse_inter_p16x16( x264_t *h, x264_mb_analysis_t *a )
             x264_me_refine_qpel_refdupe( h, &m, p_halfpel_thresh );
         }
         else
+        {
+            x264_mb_predict_mv_ref16x16( h, 0, i_ref, mvc, &i_mvc );
             x264_me_search_ref( h, &m, mvc, i_mvc, p_halfpel_thresh );
+        }
 
         /* save mv for predicting neighbors */
         CP32( h->mb.mvr[0][i_ref][h->mb.i_mb_xy], m.mv );



More information about the x264-devel mailing list