# HG changeset patch

# User Sheva Xu <shev...@outlook.com>

# Date 1409980290 -28800

#      Sat Sep 06 13:11:30 2014 +0800

# Node ID 8e583d9b1cd2ea7c9bb6d7cbc37b6cf0e858de94

# Parent  795878af39730deb24e2ee0e585c625084bb031b

Add iteration-skip to subpel refine


diff -r 795878af3973 -r 8e583d9b1cd2 source/encoder/motion.cpp

--- a/source/encoder/motion.cpp Fri Sep 05 16:03:44 2014 +0200

+++ b/source/encoder/motion.cpp Sat Sep 06 13:11:30 2014 +0800

@@ -1096,6 +1096,10 @@

                 cost = subpelCompare(ref, qmv, hpelcomp) + mvcost(qmv);

                 COPY2_IF_LT(bcost, cost, bdir, i);

             }

+            

+            // skip if bdir remains the same

+            if (0 == bdir)

+                break;

 

             bmv += square1[bdir] * 2;

         }

@@ -1113,6 +1117,10 @@

                 cost = subpelCompare(ref, qmv, satd) + mvcost(qmv);

                 COPY2_IF_LT(bcost, cost, bdir, i);

             }

+            

+            // skip if bdir remains the same

+            if (0 == bdir)

+                break;

 

             bmv += square1[bdir];

         }


_______________________________________________
x265-devel mailing list
x265-devel@videolan.org
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to