Changeset 1209 in 3DVCSoftware for branches/HTM-14.1-update-dev1-HHI/source/Lib/TLibCommon/TComRom.cpp
- Timestamp:
- 13 May 2015, 15:16:14 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev1-HHI/source/Lib/TLibCommon/TComRom.cpp
r1200 r1209 253 253 } 254 254 } 255 #if H_3D_DIM_DMM 255 256 #if NH_3D_DMM 256 257 if( !g_dmmWedgeLists.empty() ) 257 258 { 258 for( UInt ui = 0; ui < g_dmmWedgeLists.size(); ui++ ) 259 { 260 g_dmmWedgeLists[ui].clear(); 261 } 259 for( UInt ui = 0; ui < g_dmmWedgeLists.size(); ui++ ) { g_dmmWedgeLists[ui].clear(); } 262 260 g_dmmWedgeLists.clear(); 263 261 } 264 if( !g_dmmWedgeRefLists.empty() )265 {266 for( UInt ui = 0; ui < g_dmmWedgeRefLists.size(); ui++ )267 {268 g_dmmWedgeRefLists[ui].clear();269 }270 g_dmmWedgeRefLists.clear();271 }272 262 if( !g_dmmWedgeNodeLists.empty() ) 273 263 { 274 for( UInt ui = 0; ui < g_dmmWedgeNodeLists.size(); ui++ ) 275 { 276 g_dmmWedgeNodeLists[ui].clear(); 277 } 264 for( UInt ui = 0; ui < g_dmmWedgeNodeLists.size(); ui++ ) { g_dmmWedgeNodeLists[ui].clear(); } 278 265 g_dmmWedgeNodeLists.clear(); 279 266 } … … 523 510 //0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, DM 524 511 { 0, 1, 2, 2, 2, 2, 3, 5, 7, 8, 10, 12, 13, 15, 17, 18, 19, 20, 21, 22, 23, 23, 24, 24, 25, 25, 26, 27, 27, 28, 28, 29, 29, 30, 31, DM_CHROMA_IDX}; 525 #if H_3D_DIM_DMM512 #if NH_3D_DMM 526 513 // ==================================================================================================================== 527 514 // Depth coding modes … … 539 526 { //2x2 4x4 8x8 16x16 32x32 64x64 540 527 0, 7, 10, 9, 9, 13 }; 541 const UChar g_dmm3IntraTabIdxBits[6] = 542 { //2x2 4x4 8x8 16x16 32x32 64x64 543 0, 4, 7, 8, 8, 0 }; 528 544 529 Bool g_wedgePattern[32*32]; 545 530 extern std::vector< std::vector<TComWedgelet> > g_dmmWedgeLists; 546 extern std::vector< std::vector<TComWedgeRef> > g_dmmWedgeRefLists;547 531 extern std::vector< std::vector<TComWedgeNode> > g_dmmWedgeNodeLists; 548 532 #endif … … 753 737 #endif 754 738 #endif 755 #if H_3D_DIM_DMM739 #if NH_3D_DMM 756 740 std::vector< std::vector<TComWedgelet> > g_dmmWedgeLists; 757 std::vector< std::vector<TComWedgeRef> > g_dmmWedgeRefLists;758 741 std::vector< std::vector<TComWedgeNode> > g_dmmWedgeNodeLists; 742 759 743 Void initWedgeLists( Bool initNodeList ) 760 744 { 761 745 if( !g_dmmWedgeLists.empty() ) return; 762 for( UInt ui = g_aucConvertToBit[D IM_MIN_SIZE]; ui < (g_aucConvertToBit[DIM_MAX_SIZE]); ui++ )763 { 764 UInt uiWedgeBlockSize = ((UInt)D IM_MIN_SIZE)<<ui;746 for( UInt ui = g_aucConvertToBit[DMM_MIN_SIZE]; ui < (g_aucConvertToBit[DMM_MAX_SIZE]); ui++ ) 747 { 748 UInt uiWedgeBlockSize = ((UInt)DMM_MIN_SIZE)<<ui; 765 749 std::vector<TComWedgelet> acWedgeList; 766 750 std::vector<TComWedgeRef> acWedgeRefList; 767 751 createWedgeList( uiWedgeBlockSize, uiWedgeBlockSize, acWedgeList, acWedgeRefList, g_dmmWedgeResolution[ui] ); 768 752 g_dmmWedgeLists.push_back( acWedgeList ); 769 g_dmmWedgeRefLists.push_back( acWedgeRefList ); 753 770 754 if( initNodeList ) 771 755 { … … 827 811 } 828 812 } 813 829 814 Void createWedgeList( UInt uiWidth, UInt uiHeight, std::vector<TComWedgelet> &racWedgeList, std::vector<TComWedgeRef> &racWedgeRefList, WedgeResolution eWedgeRes ) 830 815 { … … 867 852 } 868 853 } 854 869 855 Void addWedgeletToList( TComWedgelet cWedgelet, std::vector<TComWedgelet> &racWedgeList, std::vector<TComWedgeRef> &racWedgeRefList ) 870 856 { … … 900 886 if( bValid ) 901 887 { 902 cWedgelet.findClosestAngle();903 888 racWedgeList.push_back( cWedgelet ); 904 889 TComWedgeRef cWedgeRef; … … 907 892 } 908 893 } 909 #endif //H_3D_DIM_DMM 894 WedgeList* getWedgeListScaled( UInt blkSize ) 895 { 896 return &g_dmmWedgeLists[ g_aucConvertToBit[( 16 >= blkSize ) ? blkSize : 16] ]; 897 } 898 WedgeNodeList* getWedgeNodeListScaled( UInt blkSize ) 899 { 900 return &g_dmmWedgeNodeLists[ g_aucConvertToBit[( 16 >= blkSize ) ? blkSize : 16] ]; 901 } 902 #endif //NH_3D_DMM 910 903 //! \}
Note: See TracChangeset for help on using the changeset viewer.