[x265] [PATCH 1 of 3] Cleanups: MVField - make members public

deepthidevaki at multicorewareinc.com deepthidevaki at multicorewareinc.com
Tue Oct 29 11:17:58 CET 2013


# HG changeset patch
# User Deepthi Devaki <deepthidevaki at multicorewareinc.com>
# Date 1383040251 -19800
# Node ID 284d3c97878462116a0a6705b46d625b7a4bc259
# Parent  4c618e33c25f98597d529d4e6ec9fb899bdc1d41
Cleanups: MVField - make members public.

set and clear methods take many cycles, where most of the time only one index need to be set. By giving public access, caller can set required indexes.

diff -r 4c618e33c25f -r 284d3c978784 source/Lib/TLibCommon/TComMotionInfo.h
--- a/source/Lib/TLibCommon/TComMotionInfo.h	Tue Oct 29 11:16:32 2013 +0530
+++ b/source/Lib/TLibCommon/TComMotionInfo.h	Tue Oct 29 15:20:51 2013 +0530
@@ -84,7 +84,7 @@
 /// class for motion information in one CU
 class TComCUMvField
 {
-private:
+public:
 
     MV* m_mv;
     MV* m_mvd;
@@ -95,8 +95,6 @@
     template<typename T>
     void setAll(T *p, T const & val, PartSize cuMode, int partAddr, uint32_t depth, int partIdx);
 
-public:
-
     TComCUMvField() : m_mv(NULL), m_mvd(NULL), m_refIdx(NULL), m_numPartitions(0) {}
 
     ~TComCUMvField() {}


More information about the x265-devel mailing list