Ticket #670: TEncSearch.cpp.2.patch
File TEncSearch.cpp.2.patch, 1.8 KB (added by jzxu, 12 years ago) |
---|
-
TEncSearch.cpp
1905 1905 ::memcpy( pcCoeffDstY, pcCoeffSrcY, sizeof( TCoeff ) * uiNumCoeffY ); 1906 1906 #if ADAPTIVE_QP_SELECTION 1907 1907 Int* pcArlCoeffDstY = m_ppcQTTempArlCoeffY [ uiQTLayer ] + ( uiNumCoeffIncY * uiAbsPartIdx ); 1908 Int* pcArlCoeffSrcY = m_ppcQTTempTUArlCoeffY + ( uiNumCoeffIncY * uiAbsPartIdx );1908 Int* pcArlCoeffSrcY = m_ppcQTTempTUArlCoeffY; 1909 1909 ::memcpy( pcArlCoeffDstY, pcArlCoeffSrcY, sizeof( Int ) * uiNumCoeffY ); 1910 1910 #endif 1911 1911 if( !bLumaOnly && !bSkipChroma ) … … 2173 2173 Bool checkTransformSkip = pcCU->getSlice()->getSPS()->getUseTransformSkip(); 2174 2174 #endif 2175 2175 UInt uiLog2TrSize = g_aucConvertToBit[ pcCU->getSlice()->getSPS()->getMaxCUWidth() >> uiFullDepth ] + 2; 2176 2177 UInt actualTrDepth = uiTrDepth; 2178 if( uiLog2TrSize == 2 ) 2179 { 2180 assert( uiTrDepth > 0 ); 2181 actualTrDepth--; 2182 UInt uiQPDiv = pcCU->getPic()->getNumPartInCU() >> ( ( pcCU->getDepth( 0 ) + actualTrDepth) << 1 ); 2183 Bool bFirstQ = ( ( uiAbsPartIdx % uiQPDiv ) == 0 ); 2184 if( !bFirstQ ) 2185 { 2186 return; 2187 } 2188 } 2189 2176 2190 checkTransformSkip &= (uiLog2TrSize <= 3); 2177 2191 #if INTRA_TRANSFORMSKIP_FAST 2178 2192 if ( m_pcEncCfg->getUseTransformSkipFast() ) … … 2190 2204 } 2191 2205 #endif 2192 2206 2193 UInt actualTrDepth = uiTrDepth;2194 if( uiLog2TrSize == 2 )2195 {2196 assert( uiTrDepth > 0 );2197 actualTrDepth--;2198 UInt uiQPDiv = pcCU->getPic()->getNumPartInCU() >> ( ( pcCU->getDepth( 0 ) + actualTrDepth) << 1 );2199 Bool bFirstQ = ( ( uiAbsPartIdx % uiQPDiv ) == 0 );2200 if( !bFirstQ )2201 {2202 return;2203 }2204 }2205 2207 if(checkTransformSkip) 2206 2208 { 2207 2209 #if INTRA_TRANSFORMSKIP_FAST==0