Changeset 655 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComRom.cpp


Ignore:
Timestamp:
23 Oct 2013, 23:01:30 (12 years ago)
Author:
tech
Message:

Merged 8.1-Cleanup@654

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibCommon/TComRom.cpp

    r622 r655  
    5555  ::memset( g_aucConvertToBit,   -1, sizeof( g_aucConvertToBit ) );
    5656  c=0;
    57   for ( i=4; i<MAX_CU_SIZE; i*=2 )
     57  for ( i=4; i<=MAX_CU_SIZE; i*=2 )
    5858  {
    5959    g_aucConvertToBit[ i ] = c;
    6060    c++;
    6161  }
    62   g_aucConvertToBit[ i ] = c;
    6362 
    6463  c=2;
     
    292291
    293292#if FAST_UDI_USE_MPM
    294 const UChar g_aucIntraModeNumFast[7] =
     293const UChar g_aucIntraModeNumFast[MAX_CU_DEPTH] =
    295294{
    296295  3,  //   2x2
     
    299298  3,  //  16x16   
    300299  3,  //  32x32   
    301   3,  //  64x64   
    302   3   // 128x128 
     300  3   //  64x64   
    303301};
    304302#else // FAST_UDI_USE_MPM
    305 const UChar g_aucIntraModeNumFast[7] =
     303const UChar g_aucIntraModeNumFast[MAX_CU_DEPTH] =
    306304{
    307305  3,  //   2x2
     
    310308  4,  //  16x16   33
    311309  4,  //  32x32   33
    312   5,  //  64x64   33
    313   4   // 128x128  33
     310  5   //  64x64   33
    314311};
    315312#endif // FAST_UDI_USE_MPM
     
    347344{ //2x2   4x4   8x8 16x16 32x32 64x64
    348345     0,    7,   10,   11,   11,   13 };
    349 #if LGE_PKU_DMM3_OVERLAP_E0159_HHIFIX
     346
    350347const UChar g_dmm3IntraTabIdxBits[6] =
    351348{ //2x2   4x4   8x8 16x16 32x32 64x64
    352349     0,    4,    7,    8,    8,    0 };
    353 #else
    354 const UChar g_dmm3IntraTabIdxBits[6] =
    355 { //2x2   4x4   8x8 16x16 32x32 64x64
    356      0,    6,    9,    9,    9,    0 };
    357 #endif
    358350
    359351extern std::vector< std::vector<TComWedgelet> >   g_dmmWedgeLists;
     
    614606std::vector< std::vector< std::vector<UInt> > > g_aauiWdgLstM3;
    615607
    616 #if LGE_PKU_DMM3_OVERLAP_E0159_HHIFIX
    617608Void initWedgeLists( Bool initNodeList )
    618 #else
    619 Void initWedgeLists( Bool initRefinements )
    620 #endif
    621609{
    622610  if( !g_dmmWedgeLists.empty() ) return;
     
    631619    g_dmmWedgeRefLists.push_back( acWedgeRefList );
    632620
    633 #if LGE_PKU_DMM3_OVERLAP_E0159_HHIFIX
    634621    if( initNodeList )
    635622    {
    636 #endif
    637     // create WedgeNodeList
    638     std::vector<TComWedgeNode> acWedgeNodeList;
    639     for( UInt uiPos = 0; uiPos < acWedgeList.size(); uiPos++ )
    640     {
    641       if( acWedgeList[uiPos].getIsCoarse() )
    642       {
    643         TComWedgeNode cWedgeNode;
    644         cWedgeNode.setPatternIdx( uiPos );
    645 
    646 #if !LGE_PKU_DMM3_OVERLAP_E0159_HHIFIX
    647         if( initRefinements )
     623      // create WedgeNodeList
     624      std::vector<TComWedgeNode> acWedgeNodeList;
     625      for( UInt uiPos = 0; uiPos < acWedgeList.size(); uiPos++ )
     626      {
     627        if( acWedgeList[uiPos].getIsCoarse() )
    648628        {
    649 #endif
     629          TComWedgeNode cWedgeNode;
     630          cWedgeNode.setPatternIdx( uiPos );
     631
    650632          UInt uiRefPos = 0;
    651633          for( Int iOffS = -1; iOffS <= 1; iOffS++ )
     
    674656              {
    675657                if( iSx == (Int)acWedgeRefList[k].getStartX() &&
    676                     iSy == (Int)acWedgeRefList[k].getStartY() &&
    677                     iEx == (Int)acWedgeRefList[k].getEndX()   &&
    678                     iEy == (Int)acWedgeRefList[k].getEndY()      )
     658                  iSy == (Int)acWedgeRefList[k].getStartY() &&
     659                  iEx == (Int)acWedgeRefList[k].getEndX()   &&
     660                  iEy == (Int)acWedgeRefList[k].getEndY()      )
    679661                {
    680662                  if( acWedgeRefList[k].getRefIdx() != cWedgeNode.getPatternIdx() )
     
    694676            }
    695677          }
    696 #if !LGE_PKU_DMM3_OVERLAP_E0159_HHIFIX
     678          acWedgeNodeList.push_back( cWedgeNode );
    697679        }
    698 #endif
    699         acWedgeNodeList.push_back( cWedgeNode );
    700       }
    701     }
    702     g_dmmWedgeNodeLists.push_back( acWedgeNodeList );
    703 #if LGE_PKU_DMM3_OVERLAP_E0159_HHIFIX
    704   }
    705 #endif
    706   }
    707   return;
     680      }
     681      g_dmmWedgeNodeLists.push_back( acWedgeNodeList );
     682    }
     683  }
    708684}
    709685
Note: See TracChangeset for help on using the changeset viewer.