Changeset 781 in 3DVCSoftware for branches/HTM-9.3-dev3-Qualcomm/source/Lib/TLibCommon/TComDataCU.cpp
- Timestamp:
- 20 Jan 2014, 04:34:18 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-9.3-dev3-Qualcomm/source/Lib/TLibCommon/TComDataCU.cpp
r773 r781 2401 2401 #endif 2402 2402 2403 #if QC_GENERIC_SDC_G0122 2404 UInt TComDataCU::getCtxSDCFlag( UInt uiAbsPartIdx ) 2405 { 2406 TComDataCU* pcTempCU; 2407 UInt uiTempPartIdx; 2408 UInt uiCtx = 0; 2409 2410 // Get BCBP of left PU 2411 pcTempCU = getPULeft( uiTempPartIdx, m_uiAbsIdxInLCU + uiAbsPartIdx ); 2412 uiCtx = ( pcTempCU && pcTempCU->isIntra( uiTempPartIdx ) ) ? pcTempCU->getSDCFlag( uiTempPartIdx ) : 0; 2413 2414 // Get BCBP of above PU 2415 pcTempCU = getPUAbove( uiTempPartIdx, m_uiAbsIdxInLCU + uiAbsPartIdx ); 2416 uiCtx += ( pcTempCU && pcTempCU->isIntra( uiTempPartIdx ) ) ? pcTempCU->getSDCFlag( uiTempPartIdx ) : 0; 2417 2418 return uiCtx; 2419 } 2420 2421 UInt TComDataCU::getCtxAngleFlag( UInt uiAbsPartIdx ) 2422 { 2423 TComDataCU* pcTempCU; 2424 UInt uiTempPartIdx; 2425 UInt uiCtx = 0; 2426 2427 // Get BCBP of left PU 2428 pcTempCU = getPULeft( uiTempPartIdx, m_uiAbsIdxInLCU + uiAbsPartIdx ); 2429 uiCtx = ( pcTempCU && pcTempCU->isIntra( uiTempPartIdx ) ) ? ( pcTempCU->getLumaIntraDir( uiTempPartIdx ) < NUM_INTRA_MODE ? 1 : 0 ) : 0; 2430 2431 // Get BCBP of above PU 2432 pcTempCU = getPUAbove( uiTempPartIdx, m_uiAbsIdxInLCU + uiAbsPartIdx ); 2433 uiCtx += ( pcTempCU && pcTempCU->isIntra( uiTempPartIdx ) ) ? ( pcTempCU->getLumaIntraDir( uiTempPartIdx ) < NUM_INTRA_MODE ? 1 : 0 ) : 0; 2434 2435 return uiCtx; 2436 } 2437 #endif 2438 2403 2439 UInt TComDataCU::getCtxInterDir( UInt uiAbsPartIdx ) 2404 2440 { … … 2627 2663 if( !getSlice()->getIsDepth() || !isIntra(uiAbsPartIdx) || getPartitionSize(uiAbsPartIdx) != SIZE_2Nx2N ) 2628 2664 return false; 2629 2665 #if QC_GENERIC_SDC_G0122 2666 if( isDimMode( getLumaIntraDir( uiAbsPartIdx ) ) && !isDimDeltaDC( getLumaIntraDir( uiAbsPartIdx ) ) ) 2667 { 2668 return true; 2669 } 2670 2671 if( getLumaIntraDir( uiAbsPartIdx ) < NUM_INTRA_MODE ) 2672 { 2673 return true; 2674 } 2675 2676 return false; 2677 #endif 2630 2678 // check prediction mode 2631 2679 UInt uiLumaPredMode = getLumaIntraDir( uiAbsPartIdx );
Note: See TracChangeset for help on using the changeset viewer.