Commits

nandaku2  committed 2559b4c

compress: save distortion info in xComputeCostInter.

  • Participants
  • Parent commits a7d2fb1

Comments (0)

Files changed (1)

File source/encoder/compress.cpp

     int part =  g_convertToBit[outTempCU->getWidth(0)];
     uint32_t distortion = primitives.sa8d[part](m_origYuv[depth]->getLumaAddr(), m_origYuv[depth]->getStride(),
                                                   outPredYuv->getLumaAddr(), outPredYuv->getStride());
+    outTempCU->m_totalDistortion = distortion;
     outTempCU->m_totalCost = m_rdCost->calcRdSADCost(distortion, outTempCU->m_totalBits);
 }