Skip to content
Snippets Groups Projects
Commit f37eaa2b authored by Tung Nguyen's avatar Tung Nguyen
Browse files

fix: do not apply TS to chroma when TS is applied to luma

parent 87e56b3d
No related branches found
No related tags found
1 merge request!203fix: do not apply TS to chroma when TS is applied to luma
...@@ -205,7 +205,7 @@ void TrQuant::invTransformNxN( TransformUnit &tu, const ComponentID &compID, Pel ...@@ -205,7 +205,7 @@ void TrQuant::invTransformNxN( TransformUnit &tu, const ComponentID &compID, Pel
DTRACE_COEFF_BUF( D_TCOEFF, tempCoeff, tu, tu.cu->predMode, compID ); DTRACE_COEFF_BUF( D_TCOEFF, tempCoeff, tu, tu.cu->predMode, compID );
#if JVET_M0464_UNI_MTS #if JVET_M0464_UNI_MTS
if( tu.mtsIdx == 1 ) if( isLuma(compID) && tu.mtsIdx == 1 )
#else #else
if( tu.transformSkip[compID] ) if( tu.transformSkip[compID] )
#endif #endif
...@@ -498,7 +498,7 @@ void TrQuant::transformNxN(TransformUnit &tu, const ComponentID &compID, const Q ...@@ -498,7 +498,7 @@ void TrQuant::transformNxN(TransformUnit &tu, const ComponentID &compID, const Q
tu.mtsIdx = it->first; tu.mtsIdx = it->first;
CoeffBuf tempCoeff( m_mtsCoeffs[tu.mtsIdx], rect ); CoeffBuf tempCoeff( m_mtsCoeffs[tu.mtsIdx], rect );
if( tu.mtsIdx == 1 ) if( isLuma(compID) && tu.mtsIdx == 1 )
{ {
xTransformSkip( tu, compID, resiBuf, tempCoeff.buf ); xTransformSkip( tu, compID, resiBuf, tempCoeff.buf );
} }
...@@ -593,7 +593,7 @@ void TrQuant::transformNxN(TransformUnit &tu, const ComponentID &compID, const Q ...@@ -593,7 +593,7 @@ void TrQuant::transformNxN(TransformUnit &tu, const ComponentID &compID, const Q
#if JVET_M0464_UNI_MTS #if JVET_M0464_UNI_MTS
if( !loadTr ) if( !loadTr )
{ {
if( tu.mtsIdx == 1 ) if( isLuma(compID) && tu.mtsIdx == 1 )
#else #else
if( tu.transformSkip[compID] ) if( tu.transformSkip[compID] )
#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