Skip to content
Snippets Groups Projects
Commit 27c36197 authored by Philippe de Lagrange's avatar Philippe de Lagrange
Browse files

Some cleanup in xGetMinMaxQP

parent e15dc112
No related branches found
No related tags found
No related merge requests found
...@@ -167,14 +167,6 @@ void EncModeCtrl::xGetMinMaxQP( int& minQP, int& maxQP, const CodingStructure& c ...@@ -167,14 +167,6 @@ void EncModeCtrl::xGetMinMaxQP( int& minQP, int& maxQP, const CodingStructure& c
minQP = cs.currQP[partitioner.chType]; minQP = cs.currQP[partitioner.chType];
maxQP = cs.currQP[partitioner.chType]; maxQP = cs.currQP[partitioner.chType];
} }
#if SHARP_LUMA_DELTA_QP
if (m_pcEncCfg->getLumaLevelToDeltaQPMapping().isEnabled() && (!CS::isDualITree (cs) || isLuma (partitioner.chType)))
{
minQP = Clip3( -sps.getQpBDOffset( CHANNEL_TYPE_LUMA ), MAX_QP, baseQP - m_lumaQPOffset );
maxQP = minQP;
}
#endif
#else #else
const uint32_t currDepth = partitioner.currDepth; const uint32_t currDepth = partitioner.currDepth;
...@@ -222,6 +214,7 @@ void EncModeCtrl::xGetMinMaxQP( int& minQP, int& maxQP, const CodingStructure& c ...@@ -222,6 +214,7 @@ void EncModeCtrl::xGetMinMaxQP( int& minQP, int& maxQP, const CodingStructure& c
maxQP = cs.currQP[partitioner.chType]; maxQP = cs.currQP[partitioner.chType];
} }
} }
#endif
#if SHARP_LUMA_DELTA_QP #if SHARP_LUMA_DELTA_QP
if (m_pcEncCfg->getLumaLevelToDeltaQPMapping().isEnabled() && (!CS::isDualITree (cs) || isLuma (partitioner.chType))) if (m_pcEncCfg->getLumaLevelToDeltaQPMapping().isEnabled() && (!CS::isDualITree (cs) || isLuma (partitioner.chType)))
...@@ -230,7 +223,6 @@ void EncModeCtrl::xGetMinMaxQP( int& minQP, int& maxQP, const CodingStructure& c ...@@ -230,7 +223,6 @@ void EncModeCtrl::xGetMinMaxQP( int& minQP, int& maxQP, const CodingStructure& c
maxQP = minQP; maxQP = minQP;
} }
#endif #endif
#endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment