diff --git a/source/Lib/CommonLib/Slice.cpp b/source/Lib/CommonLib/Slice.cpp index 56acb1595129f139456b511001d36912ed53cbac..bb9c26525e73c10f255f814ba0aa07baf91cb2ee 100644 --- a/source/Lib/CommonLib/Slice.cpp +++ b/source/Lib/CommonLib/Slice.cpp @@ -2837,13 +2837,13 @@ void calculateParameterSetChangedFlag(bool &bChanged, const std::vector<uint8_t> uint32_t PreCalcValues::getValIdx( const Slice &slice, const ChannelType chType ) const { - return slice.isIRAP() ? ( ISingleTree ? 0 : ( chType << 1 ) ) : 1; + return slice.isIntra() ? ( ISingleTree ? 0 : ( chType << 1 ) ) : 1; } uint32_t PreCalcValues::getMaxBtDepth( const Slice &slice, const ChannelType chType ) const { if ( slice.getSplitConsOverrideFlag() ) - return (!slice.isIRAP() || isLuma(chType) || ISingleTree) ? slice.getMaxBTDepth() : slice.getMaxBTDepthIChroma(); + return (!slice.isIntra() || isLuma(chType) || ISingleTree) ? slice.getMaxBTDepth() : slice.getMaxBTDepthIChroma(); else return maxBtDepth[getValIdx( slice, chType )]; } @@ -2856,7 +2856,7 @@ uint32_t PreCalcValues::getMinBtSize( const Slice &slice, const ChannelType chTy uint32_t PreCalcValues::getMaxBtSize( const Slice &slice, const ChannelType chType ) const { if (slice.getSplitConsOverrideFlag()) - return (!slice.isIRAP() || isLuma(chType) || ISingleTree) ? slice.getMaxBTSize() : slice.getMaxBTSizeIChroma(); + return (!slice.isIntra() || isLuma(chType) || ISingleTree) ? slice.getMaxBTSize() : slice.getMaxBTSizeIChroma(); else return maxBtSize[getValIdx(slice, chType)]; } @@ -2869,14 +2869,14 @@ uint32_t PreCalcValues::getMinTtSize( const Slice &slice, const ChannelType chTy uint32_t PreCalcValues::getMaxTtSize( const Slice &slice, const ChannelType chType ) const { if ( slice.getSplitConsOverrideFlag() ) - return (!slice.isIRAP() || isLuma(chType) || ISingleTree) ? slice.getMaxTTSize() : slice.getMaxTTSizeIChroma(); + return (!slice.isIntra() || isLuma(chType) || ISingleTree) ? slice.getMaxTTSize() : slice.getMaxTTSizeIChroma(); else return maxTtSize[getValIdx( slice, chType )]; } uint32_t PreCalcValues::getMinQtSize( const Slice &slice, const ChannelType chType ) const { if ( slice.getSplitConsOverrideFlag() ) - return (!slice.isIRAP() || isLuma(chType) || ISingleTree) ? slice.getMinQTSize() : slice.getMinQTSizeIChroma(); + return (!slice.isIntra() || isLuma(chType) || ISingleTree) ? slice.getMinQTSize() : slice.getMinQTSizeIChroma(); else return minQtSize[getValIdx( slice, chType )]; } diff --git a/source/Lib/CommonLib/UnitTools.cpp b/source/Lib/CommonLib/UnitTools.cpp index 7d380eac4dbc26ce8ab97f295c85d7082a338314..d1453efe864587998d33dea8481b4f271af79ec1 100644 --- a/source/Lib/CommonLib/UnitTools.cpp +++ b/source/Lib/CommonLib/UnitTools.cpp @@ -58,7 +58,7 @@ uint64_t CS::getEstBits(const CodingStructure &cs) bool CS::isDualITree( const CodingStructure &cs ) { - return cs.slice->isIRAP() && !cs.pcv->ISingleTree; + return cs.slice->isIntra() && !cs.pcv->ISingleTree; } UnitArea CS::getArea( const CodingStructure &cs, const UnitArea &area, const ChannelType chType )