[x265-commits] [x265] cudata: remove default argument
Satoshi Nakagawa
nakagawa424 at oki.com
Fri Nov 7 05:10:11 CET 2014
details: http://hg.videolan.org/x265/rev/bc4f3dab51db
branches:
changeset: 8793:bc4f3dab51db
user: Satoshi Nakagawa <nakagawa424 at oki.com>
date: Fri Nov 07 11:43:15 2014 +0900
description:
cudata: remove default argument
diffstat:
source/common/cudata.cpp | 11 +++--------
source/common/cudata.h | 2 +-
2 files changed, 4 insertions(+), 9 deletions(-)
diffs (50 lines):
diff -r 0ebd0b00bf9b -r bc4f3dab51db source/common/cudata.cpp
--- a/source/common/cudata.cpp Thu Nov 06 19:37:39 2014 -0600
+++ b/source/common/cudata.cpp Fri Nov 07 11:43:15 2014 +0900
@@ -546,7 +546,7 @@ const CUData* CUData::getPULeft(uint32_t
return m_cuLeft;
}
-const CUData* CUData::getPUAbove(uint32_t& aPartUnitIdx, uint32_t curPartUnitIdx, bool planarAtCTUBoundary) const
+const CUData* CUData::getPUAbove(uint32_t& aPartUnitIdx, uint32_t curPartUnitIdx) const
{
uint32_t absPartIdx = g_zscanToRaster[curPartUnitIdx];
@@ -557,15 +557,10 @@ const CUData* CUData::getPUAbove(uint32_
if (isEqualRow(absPartIdx, absZorderCUIdx, s_numPartInCUSize))
return m_encData->getPicCTU(m_cuAddr);
else
- {
aPartUnitIdx -= m_absIdxInCTU;
- return this;
- }
+ return this;
}
- if (planarAtCTUBoundary)
- return NULL;
-
aPartUnitIdx = g_rasterToZscan[absPartIdx + NUM_CU_PARTITIONS - s_numPartInCUSize];
return m_cuAbove;
}
@@ -853,7 +848,7 @@ int CUData::getIntraDirLumaPredictor(uin
leftIntraDir = (tempCU && tempCU->isIntra(tempPartIdx)) ? tempCU->m_lumaIntraDir[tempPartIdx] : DC_IDX;
// Get intra direction of above PU
- tempCU = getPUAbove(tempPartIdx, m_absIdxInCTU + absPartIdx, true);
+ tempCU = g_zscanToPelY[m_absIdxInCTU + absPartIdx] > 0 ? getPUAbove(tempPartIdx, m_absIdxInCTU + absPartIdx) : NULL;
aboveIntraDir = (tempCU && tempCU->isIntra(tempPartIdx)) ? tempCU->m_lumaIntraDir[tempPartIdx] : DC_IDX;
diff -r 0ebd0b00bf9b -r bc4f3dab51db source/common/cudata.h
--- a/source/common/cudata.h Thu Nov 06 19:37:39 2014 -0600
+++ b/source/common/cudata.h Fri Nov 07 11:43:15 2014 +0900
@@ -222,7 +222,7 @@ public:
void getTUEntropyCodingParameters(TUEntropyCodingParameters &result, uint32_t absPartIdx, uint32_t log2TrSize, bool bIsLuma) const;
const CUData* getPULeft(uint32_t& lPartUnitIdx, uint32_t curPartUnitIdx) const;
- const CUData* getPUAbove(uint32_t& aPartUnitIdx, uint32_t curPartUnitIdx, bool planarAtCTUBoundary = false) const;
+ const CUData* getPUAbove(uint32_t& aPartUnitIdx, uint32_t curPartUnitIdx) const;
const CUData* getPUAboveLeft(uint32_t& alPartUnitIdx, uint32_t curPartUnitIdx) const;
const CUData* getPUAboveRight(uint32_t& arPartUnitIdx, uint32_t curPartUnitIdx) const;
const CUData* getPUBelowLeft(uint32_t& blPartUnitIdx, uint32_t curPartUnitIdx) const;
More information about the x265-commits
mailing list