]> granicus.if.org Git - libx264/commitdiff
intra_rd_refine in B-frames
authorLoren Merritt <pengvado@videolan.org>
Mon, 28 Jan 2008 14:33:42 +0000 (14:33 +0000)
committerLoren Merritt <pengvado@videolan.org>
Mon, 28 Jan 2008 14:33:42 +0000 (14:33 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@736 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/analyse.c

index fbf2b92b674781a74d88c0a1c9743c22dcdf8351..109c436077cc8b2a230c70e1e9ed7a13572afe96 100644 (file)
@@ -2559,7 +2559,9 @@ void x264_macroblock_analyse( x264_t *h )
             h->mb.i_type = i_type;
             h->mb.i_partition = i_partition;
 
-            if( h->param.analyse.b_bidir_me )
+            if( h->mb.i_subpel_refine >= 7 && IS_INTRA( i_type ) )
+                x264_intra_rd_refine( h, &analysis );
+            else if( h->param.analyse.b_bidir_me )
                 refine_bidir( h, &analysis );
         }
     }