Ignore:
Timestamp:
18 Jul 2015, 01:59:29 (9 years ago)
Author:
seregin
Message:

port rev 4324 (g_uiMaxDepth, g_uiAddDepth)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TComChromaFormat.h

    r1287 r1290  
    127127//returns the part index of the luma region that is co-located with the specified chroma region
    128128
    129 static inline UInt getChromasCorrespondingPULumaIdx(const UInt lumaZOrderIdxInCtu, const ChromaFormat chFmt)
    130 {
    131   return enable4ChromaPUsInIntraNxNCU(chFmt) ? lumaZOrderIdxInCtu : lumaZOrderIdxInCtu & (~((1<<(2*g_uiAddCUDepth))-1)); //(lumaZOrderIdxInCtu/numParts)*numParts;
     129static inline UInt
     130getChromasCorrespondingPULumaIdx(const UInt lumaZOrderIdxInCtu,
     131                                 const ChromaFormat chFmt,
     132                                 const Int partsPerMinCU  // 1<<(2*(sps->getMaxTotalCUDepth() - sps->getLog2DiffMaxMinCodingBlockSize()))
     133                                 )
     134{
     135  return enable4ChromaPUsInIntraNxNCU(chFmt) ? lumaZOrderIdxInCtu : lumaZOrderIdxInCtu & (~(partsPerMinCU-1));
    132136}
    133137
Note: See TracChangeset for help on using the changeset viewer.