doubletmpWeight=pow(2.0,(estQP-qpc)/3.0);// takes into account of the chroma qp mapping and chroma qp Offset
if(m_pcCfg->getDepQuantEnabledFlag())
{
tmpWeight*=(m_pcCfg->getGOPSize()>=8?pow(2.0,0.1/3.0):pow(2.0,0.2/3.0));// increase chroma weight for dependent quantization (in order to reduce bit rate shift from chroma to luma)
doubletmpWeight=pow(2.0,(estQP-qpc)/3.0);// takes into account of the chroma qp mapping and chroma qp Offset
if(m_pcCfg->getDepQuantEnabledFlag())
{
tmpWeight*=(m_pcCfg->getGOPSize()>=8?pow(2.0,0.1/3.0):pow(2.0,0.2/3.0));// increase chroma weight for dependent quantization (in order to reduce bit rate shift from chroma to luma)