[x265] [PATCH] simplify: getLumaIntraDir()[x] -> getLumaIntraDir(x)

Min Chen chenm003 at 163.com
Thu Jul 3 00:55:06 CEST 2014


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1404341698 25200
# Node ID c239de820501daf4438a884f6bb6b30fff340789
# Parent  e236f39a4293056fab686e0af76bb19748f4cef1
simplify: getLumaIntraDir()[x] -> getLumaIntraDir(x)

diff -r e236f39a4293 -r c239de820501 source/Lib/TLibEncoder/TEncCu.cpp
--- a/source/Lib/TLibEncoder/TEncCu.cpp	Wed Jul 02 10:31:14 2014 -0700
+++ b/source/Lib/TLibEncoder/TEncCu.cpp	Wed Jul 02 15:54:58 2014 -0700
@@ -350,10 +350,10 @@
                 else
                 {
                     m_log->cntIntra[part]++;
-                    if (cu->getLumaIntraDir()[i] > 1)
+                    if (cu->getLumaIntraDir(i) > 1)
                         m_log->cuIntraDistribution[part][ANGULAR_MODE_ID]++;
                     else
-                        m_log->cuIntraDistribution[part][cu->getLumaIntraDir()[i]]++;
+                        m_log->cuIntraDistribution[part][cu->getLumaIntraDir(i)]++;
                 }
                 i += next;
             }
@@ -404,10 +404,10 @@
                         else
                         {
                             m_log->cntIntra[part]++;
-                            if (cu->getLumaIntraDir()[0] > 1)
+                            if (cu->getLumaIntraDir(0) > 1)
                                 m_log->cuIntraDistribution[part][ANGULAR_MODE_ID]++;
                             else
-                                m_log->cuIntraDistribution[part][cu->getLumaIntraDir()[0]]++;
+                                m_log->cuIntraDistribution[part][cu->getLumaIntraDir(0)]++;
                         }
                     }
                 }



More information about the x265-devel mailing list