Commit a772f856 authored by Karl Sharman's avatar Karl Sharman

Fix interaction with fast encoder search of M0464.

parent 02f30d1b
......@@ -513,7 +513,16 @@ void TrQuant::transformNxN(TransformUnit &tu, const ComponentID &compID, const Q
sumAbs += abs( tempCoeff.buf[pos] );
}
#if JVET_M0119_NO_TRANSFORM_SKIP_QUANTISATION_ADJUSTMENT
double scaleSAD=1.0;
if (isLuma(compID) && tu.mtsIdx==1 && ((g_aucLog2[width] + g_aucLog2[height]) & 1) == 1 )
{
scaleSAD=1.0/1.414213562; // compensate for not scaling transform skip coefficients by 1/sqrt(2)
}
trCosts.push_back( TrCost( int(sumAbs*scaleSAD), pos++ ) );
#else
trCosts.push_back( TrCost( sumAbs, pos++ ) );
#endif
it++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment