[x264-devel] commit: Fix RD early-skip (Jason Garrett-Glaser )

git version control git at videolan.org
Sun Sep 6 19:37:01 CEST 2009


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Sat Sep  5 18:56:18 2009 -0700| [643cef5ea8a089a986e1fe17238ce28b1931ea22] | committer: Jason Garrett-Glaser 

Fix RD early-skip
Small quality improvement and speedup, was broken by r1214.

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

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

diff --git a/encoder/analyse.c b/encoder/analyse.c
index dec1271..92b5ae5 100644
--- a/encoder/analyse.c
+++ b/encoder/analyse.c
@@ -1229,6 +1229,8 @@ static void x264_mb_analyse_inter_p16x16( x264_t *h, x264_mb_analysis_t *a )
             h->mb.i_partition = D_16x16;
             x264_macroblock_cache_mv_ptr( h, 0, 0, 4, 4, 0, a->l0.me16x16.mv );
             a->l0.i_rd16x16 = x264_rd_cost_mb( h, a->i_lambda2 );
+            if( !(h->mb.i_cbp_luma|h->mb.i_cbp_chroma) )
+                h->mb.i_type = P_SKIP;
         }
     }
 }



More information about the x264-devel mailing list