Commit d43ee019 authored by Muhammed Coban's avatar Muhammed Coban

JVET-R0083: SW cleanup addressing ticket #859 regarding DQ + TS(RRC) combination issue from Q0089.

parent bd81a916
......@@ -1573,10 +1573,11 @@ DepQuant::~DepQuant()
void DepQuant::quant( TransformUnit &tu, const ComponentID &compID, const CCoeffBuf &pSrc, TCoeff &uiAbsSum, const QpParam &cQP, const Ctx& ctx )
{
const bool useRegularResidualCoding = tu.cu->slice->getTSResidualCodingDisabledFlag() || tu.mtsIdx[compID] != MTS_SKIP;
#if JVET_R0271_SLICE_LEVEL_DQ_SDH_RRC
if( tu.cs->slice->getDepQuantEnabledFlag() && (tu.cu->slice->getTSResidualCodingDisabledFlag() || tu.mtsIdx[compID] != MTS_SKIP) )
if( tu.cs->slice->getDepQuantEnabledFlag() && useRegularResidualCoding )
#else
if( tu.cs->picHeader->getDepQuantEnabledFlag() && (tu.cu->slice->getTSResidualCodingDisabledFlag() || tu.mtsIdx[compID] != MTS_SKIP) )
if( tu.cs->picHeader->getDepQuantEnabledFlag() && useRegularResidualCoding )
#endif
{
//===== scaling matrix ====
......@@ -1603,10 +1604,11 @@ void DepQuant::quant( TransformUnit &tu, const ComponentID &compID, const CCoeff
void DepQuant::dequant( const TransformUnit &tu, CoeffBuf &dstCoeff, const ComponentID &compID, const QpParam &cQP )
{
const bool useRegularResidualCoding = tu.cu->slice->getTSResidualCodingDisabledFlag() || tu.mtsIdx[compID] != MTS_SKIP;
#if JVET_R0271_SLICE_LEVEL_DQ_SDH_RRC
if( tu.cs->slice->getDepQuantEnabledFlag() && (tu.cu->slice->getTSResidualCodingDisabledFlag() || tu.mtsIdx[compID] != MTS_SKIP) )
if( tu.cs->slice->getDepQuantEnabledFlag() && useRegularResidualCoding )
#else
if( tu.cs->picHeader->getDepQuantEnabledFlag() && (tu.cu->slice->getTSResidualCodingDisabledFlag() || tu.mtsIdx[compID] != MTS_SKIP) )
if( tu.cs->picHeader->getDepQuantEnabledFlag() && useRegularResidualCoding )
#endif
{
const int qpDQ = cQP.Qp(tu.mtsIdx[compID] == MTS_SKIP) + 1;
......
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