Changeset 49 in SHVCSoftware


Ignore:
Timestamp:
25 Feb 2013, 21:01:18 (12 years ago)
Author:
seregin
Message:

moving general variable out of the loop, reported by Liwei Guo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-1.1-dev/source/Lib/TLibCommon/TComPic.cpp

    r47 r49  
    624624#endif
    625625
     626  UInt uiNumPartitions   = 1<<(g_uiMaxCUDepth<<1);
     627  UInt uiWidthMinPU      = g_uiMaxCUWidth/(1<<g_uiMaxCUDepth);
     628  UInt uiHeightMinPU     = g_uiMaxCUHeight/(1<<g_uiMaxCUDepth);
     629  Int  unitNum           = max (1, (Int)((16/uiWidthMinPU)*(16/uiHeightMinPU)) );
     630
    626631  for(UInt cuIdx = 0; cuIdx < getPicSym()->getNumberOfCUsInFrame(); cuIdx++)  //each LCU
    627632  {
    628     UInt uiNumPartitions   = 1<<(g_uiMaxCUDepth<<1);
    629 
    630633    TComDataCU*             pcCUDes = getCU(cuIdx);
    631 
    632     UInt uiWidthMinPU      = g_uiMaxCUWidth/(1<<g_uiMaxCUDepth);
    633     UInt uiHeightMinPU     = g_uiMaxCUHeight/(1<<g_uiMaxCUDepth);
    634     Int unitNum = max (1, (Int)((16/uiWidthMinPU)*(16/uiHeightMinPU)) );
    635634
    636635    for(UInt uiAbsPartIdx = 0; uiAbsPartIdx < uiNumPartitions; uiAbsPartIdx+=unitNum )  //each 16x16 unit
Note: See TracChangeset for help on using the changeset viewer.