Changeset 655 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComRom.cpp
- Timestamp:
- 23 Oct 2013, 23:01:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComRom.cpp
r622 r655 55 55 ::memset( g_aucConvertToBit, -1, sizeof( g_aucConvertToBit ) ); 56 56 c=0; 57 for ( i=4; i< MAX_CU_SIZE; i*=2 )57 for ( i=4; i<=MAX_CU_SIZE; i*=2 ) 58 58 { 59 59 g_aucConvertToBit[ i ] = c; 60 60 c++; 61 61 } 62 g_aucConvertToBit[ i ] = c;63 62 64 63 c=2; … … 292 291 293 292 #if FAST_UDI_USE_MPM 294 const UChar g_aucIntraModeNumFast[ 7] =293 const UChar g_aucIntraModeNumFast[MAX_CU_DEPTH] = 295 294 { 296 295 3, // 2x2 … … 299 298 3, // 16x16 300 299 3, // 32x32 301 3, // 64x64 302 3 // 128x128 300 3 // 64x64 303 301 }; 304 302 #else // FAST_UDI_USE_MPM 305 const UChar g_aucIntraModeNumFast[ 7] =303 const UChar g_aucIntraModeNumFast[MAX_CU_DEPTH] = 306 304 { 307 305 3, // 2x2 … … 310 308 4, // 16x16 33 311 309 4, // 32x32 33 312 5, // 64x64 33 313 4 // 128x128 33 310 5 // 64x64 33 314 311 }; 315 312 #endif // FAST_UDI_USE_MPM … … 347 344 { //2x2 4x4 8x8 16x16 32x32 64x64 348 345 0, 7, 10, 11, 11, 13 }; 349 #if LGE_PKU_DMM3_OVERLAP_E0159_HHIFIX 346 350 347 const UChar g_dmm3IntraTabIdxBits[6] = 351 348 { //2x2 4x4 8x8 16x16 32x32 64x64 352 349 0, 4, 7, 8, 8, 0 }; 353 #else354 const UChar g_dmm3IntraTabIdxBits[6] =355 { //2x2 4x4 8x8 16x16 32x32 64x64356 0, 6, 9, 9, 9, 0 };357 #endif358 350 359 351 extern std::vector< std::vector<TComWedgelet> > g_dmmWedgeLists; … … 614 606 std::vector< std::vector< std::vector<UInt> > > g_aauiWdgLstM3; 615 607 616 #if LGE_PKU_DMM3_OVERLAP_E0159_HHIFIX617 608 Void initWedgeLists( Bool initNodeList ) 618 #else619 Void initWedgeLists( Bool initRefinements )620 #endif621 609 { 622 610 if( !g_dmmWedgeLists.empty() ) return; … … 631 619 g_dmmWedgeRefLists.push_back( acWedgeRefList ); 632 620 633 #if LGE_PKU_DMM3_OVERLAP_E0159_HHIFIX634 621 if( initNodeList ) 635 622 { 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() ) 648 628 { 649 #endif 629 TComWedgeNode cWedgeNode; 630 cWedgeNode.setPatternIdx( uiPos ); 631 650 632 UInt uiRefPos = 0; 651 633 for( Int iOffS = -1; iOffS <= 1; iOffS++ ) … … 674 656 { 675 657 if( iSx == (Int)acWedgeRefList[k].getStartX() && 676 677 678 658 iSy == (Int)acWedgeRefList[k].getStartY() && 659 iEx == (Int)acWedgeRefList[k].getEndX() && 660 iEy == (Int)acWedgeRefList[k].getEndY() ) 679 661 { 680 662 if( acWedgeRefList[k].getRefIdx() != cWedgeNode.getPatternIdx() ) … … 694 676 } 695 677 } 696 #if !LGE_PKU_DMM3_OVERLAP_E0159_HHIFIX 678 acWedgeNodeList.push_back( cWedgeNode ); 697 679 } 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 } 708 684 } 709 685
Note: See TracChangeset for help on using the changeset viewer.