[x264-devel] chroma-me: take shortcut in BI analysis

Jason Garrett-Glaser git at videolan.org
Wed Oct 30 21:18:33 CET 2013


x264 | branch: master | Jason Garrett-Glaser <jason at x264.com> | Thu Oct 24 17:19:00 2013 -0700| [c5d8f090e5f12863c6ef2937f259633be52bda7f] | committer: Jason Garrett-Glaser

chroma-me: take shortcut in BI analysis

~100 cycles faster with subme>=9

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

 encoder/analyse.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/encoder/analyse.c b/encoder/analyse.c
index 9e1030d..2d92e64 100644
--- a/encoder/analyse.c
+++ b/encoder/analyse.c
@@ -2121,7 +2121,7 @@ static void x264_mb_analyse_inter_b16x16( x264_t *h, x264_mb_analysis_t *a )
         int cost00 = h->pixf.mbcmp[PIXEL_16x16]( h->mb.pic.p_fenc[0], FENC_STRIDE, pix0, 16 )
                    + ref_costs + l0_mv_cost + l1_mv_cost;
 
-        if( h->mb.b_chroma_me )
+        if( h->mb.b_chroma_me && cost00 < a->i_cost16x16bi )
         {
             ALIGNED_ARRAY_16( pixel, bi, [16*FENC_STRIDE] );
 



More information about the x264-devel mailing list