]> git.videolan.org Git - x264.git/commitdiff
Make MV prediction work across slice boundaries
authorJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 7 Apr 2010 14:45:00 +0000 (07:45 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Sat, 10 Apr 2010 21:15:09 +0000 (14:15 -0700)
Should improve motion search with lots of small slices, e.g. with slice-max-size.
Still restricted by sliced threads (won't cross the boundary between two threadslices).
The output-changing part of the previous patch.

common/macroblock.c

index f1157b0581790e77cf2e9ce54e66b5e0c7f24a21..6dd19f67398473d8b5f13f4b31869a7192a059f0 100644 (file)
@@ -420,17 +420,17 @@ void x264_mb_predict_mv_ref16x16( x264_t *h, int i_list, int i_ref, int16_t mvc[
     }
 
     /* spatial predictors */
-    if( h->mb.i_neighbour & MB_LEFT )
+    if( h->mb.i_neighbour_frame & MB_LEFT )
     {
         SET_MVP( mvr[h->mb.i_mb_left_xy] );
     }
-    if( h->mb.i_neighbour & MB_TOP )
+    if( h->mb.i_neighbour_frame & MB_TOP )
     {
         SET_MVP( mvr[h->mb.i_mb_top_xy] );
 
-        if( h->mb.i_neighbour & MB_TOPLEFT )
+        if( h->mb.i_neighbour_frame & MB_TOPLEFT )
             SET_MVP( mvr[h->mb.i_mb_topleft_xy] );
-        if( h->mb.i_neighbour & MB_TOPRIGHT )
+        if( h->mb.i_neighbour_frame & MB_TOPRIGHT )
             SET_MVP( mvr[h->mb.i_mb_topright_xy] );
     }
 #undef SET_MVP