Changeset 697 in 3DVCSoftware for branches/HTM-8.2-dev3-Samsung/source/Lib/TLibCommon
- Timestamp:
- 15 Nov 2013, 03:34:41 (11 years ago)
- Location:
- branches/HTM-8.2-dev3-Samsung/source/Lib/TLibCommon
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-8.2-dev3-Samsung/source/Lib/TLibCommon/ContextTables.h
r673 r697 116 116 #if H_3D_DIM_DMM 117 117 #define NUM_DMM1_DATA_CTX 1 ///< number of context models for DMM1 data 118 #if !SEC_DMM3_RBC_F0147 118 119 #define NUM_DMM3_DATA_CTX 1 ///< number of context models for DMM3 data 120 #endif 119 121 #endif 120 122 #if H_3D_DIM_RBC … … 433 435 { CNU }, 434 436 }; 437 #if !SEC_DMM3_RBC_F0147 435 438 static const UChar 436 439 INIT_DMM3_DATA[3][NUM_DMM3_DATA_CTX] = … … 440 443 { CNU }, 441 444 }; 445 #endif 442 446 #endif 443 447 #if H_3D_DIM_RBC -
branches/HTM-8.2-dev3-Samsung/source/Lib/TLibCommon/TComDataCU.cpp
r673 r697 120 120 m_dmmWedgeTabIdx[i] = NULL; 121 121 } 122 #if !SEC_DMM3_RBC_F0147 122 123 m_dmm3IntraTabIdx = NULL; 124 #endif 123 125 #endif 124 126 #if H_3D_DIM_RBC … … 271 273 m_dmmWedgeTabIdx[i] = (UInt*)xMalloc(UInt, uiNumPartition); 272 274 } 275 #if !SEC_DMM3_RBC_F0147 273 276 m_dmm3IntraTabIdx = (UInt*)xMalloc(UInt, uiNumPartition); 277 #endif 274 278 #endif 275 279 #if H_3D_DIM_RBC … … 404 408 if ( m_dmmWedgeTabIdx[i] ) { xFree( m_dmmWedgeTabIdx[i] ); m_dmmWedgeTabIdx[i] = NULL; } 405 409 } 410 #if !SEC_DMM3_RBC_F0147 406 411 if ( m_dmm3IntraTabIdx ) { xFree( m_dmm3IntraTabIdx ); m_dmm3IntraTabIdx = NULL; } 412 #endif 407 413 #endif 408 414 #if H_3D_DIM_RBC … … 622 628 memset( m_dmmWedgeTabIdx[i] + firstElement, 0, numElements * sizeof( *m_dmmWedgeTabIdx[i] ) ); 623 629 } 630 #if !SEC_DMM3_RBC_F0147 624 631 memset( m_dmm3IntraTabIdx + firstElement, 0, numElements * sizeof( *m_dmm3IntraTabIdx ) ); 632 #endif 625 633 #endif 626 634 #if H_3D_DIM_RBC … … 799 807 m_dmmWedgeTabIdx[i] [ui] = 0; 800 808 } 809 #if !SEC_DMM3_RBC_F0147 801 810 m_dmm3IntraTabIdx [ui] = 0; 811 #endif 802 812 #endif 803 813 #if H_3D_DIM_SDC … … 910 920 memset( m_dmmWedgeTabIdx[i], 0, sizeof(UInt) * m_uiNumPartition ); 911 921 } 922 #if !SEC_DMM3_RBC_F0147 912 923 memset( m_dmm3IntraTabIdx, 0, sizeof(UInt) * m_uiNumPartition ); 924 #endif 913 925 #endif 914 926 #if H_3D_DIM_RBC … … 992 1004 m_dmmWedgeTabIdx[i] [ui] = pcCU->m_dmmWedgeTabIdx[i] [uiPartOffset+ui]; 993 1005 } 1006 #if !SEC_DMM3_RBC_F0147 994 1007 m_dmm3IntraTabIdx [ui] = pcCU->m_dmm3IntraTabIdx[uiPartOffset+ui]; 1008 #endif 995 1009 #endif 996 1010 #if H_3D_DIM_SDC … … 1146 1160 m_dmmWedgeTabIdx[i] = pcCU->getDmmWedgeTabIdx( i ) + uiPart; 1147 1161 } 1162 #if !SEC_DMM3_RBC_F0147 1148 1163 m_dmm3IntraTabIdx = pcCU->getDmm3IntraTabIdx() + uiPart; 1164 #endif 1149 1165 #endif 1150 1166 #if H_3D_DIM_RBC … … 1342 1358 memcpy( m_dmmWedgeTabIdx[i] + uiOffset, pcCU->getDmmWedgeTabIdx( i ), sizeof(UInt) * uiNumPartition ); 1343 1359 } 1360 #if !SEC_DMM3_RBC_F0147 1344 1361 memcpy( m_dmm3IntraTabIdx + uiOffset, pcCU->getDmm3IntraTabIdx(), sizeof(UInt) * uiNumPartition ); 1362 #endif 1345 1363 #endif 1346 1364 #if H_3D_DIM_RBC … … 1469 1487 memcpy( rpcCU->getDmmWedgeTabIdx( i ) + m_uiAbsIdxInLCU, m_dmmWedgeTabIdx[i], sizeof(UInt) * m_uiNumPartition ); 1470 1488 } 1489 #if !SEC_DMM3_RBC_F0147 1471 1490 memcpy( rpcCU->getDmm3IntraTabIdx() + m_uiAbsIdxInLCU, m_dmm3IntraTabIdx, sizeof(UInt) * m_uiNumPartition ); 1491 #endif 1472 1492 #endif 1473 1493 #if H_3D_DIM_RBC … … 1582 1602 memcpy( rpcCU->getDmmWedgeTabIdx( i ) + uiPartOffset, m_dmmWedgeTabIdx[i], sizeof(UInt) * uiQNumPart ); 1583 1603 } 1604 #if !SEC_DMM3_RBC_F0147 1584 1605 memcpy( rpcCU->getDmm3IntraTabIdx() + uiPartOffset, m_dmm3IntraTabIdx, sizeof(UInt) * uiQNumPart ); 1606 #endif 1585 1607 #endif 1586 1608 #if H_3D_DIM_RBC … … 6176 6198 for( UInt ui = 0; ui < uiCurrPartNumb; ui++ ) { m_dmmWedgeTabIdx[dmmType][uiAbsPartIdx+ui] = tabIdx; } 6177 6199 } 6200 #if !SEC_DMM3_RBC_F0147 6178 6201 Void TComDataCU::setDmm3IntraTabIdxSubParts( UInt uiTIdx, UInt uiAbsPartIdx, UInt uiDepth ) 6179 6202 { … … 6181 6204 for( UInt ui = 0; ui < uiCurrPartNumb; ui++ ) { m_dmm3IntraTabIdx[uiAbsPartIdx+ui] = uiTIdx; } 6182 6205 } 6206 #endif 6183 6207 #endif 6184 6208 #if H_3D_DIM_RBC -
branches/HTM-8.2-dev3-Samsung/source/Lib/TLibCommon/TComDataCU.h
r673 r697 208 208 #if H_3D_DIM_DMM 209 209 UInt* m_dmmWedgeTabIdx[DMM_NUM_TYPE]; 210 #if !SEC_DMM3_RBC_F0147 210 211 UInt* m_dmm3IntraTabIdx; 212 #endif 211 213 #endif 212 214 #if H_3D_DIM_RBC … … 538 540 Void setDmmWedgeTabIdxSubParts ( UInt tabIdx, UInt dmmType, UInt uiAbsPartIdx, UInt uiDepth ); 539 541 542 #if !SEC_DMM3_RBC_F0147 540 543 UInt* getDmm3IntraTabIdx () { return m_dmm3IntraTabIdx; } 541 544 UInt getDmm3IntraTabIdx ( UInt uiIdx ) { return m_dmm3IntraTabIdx[uiIdx]; } 542 545 Void setDmm3IntraTabIdx ( UInt uiIdx, UInt uh ) { m_dmm3IntraTabIdx[uiIdx] = uh; } 543 546 Void setDmm3IntraTabIdxSubParts ( UInt uiTIdx, UInt uiAbsPartIdx, UInt uiDepth ); 547 #endif 544 548 #endif 545 549 #if H_3D_DIM_RBC -
branches/HTM-8.2-dev3-Samsung/source/Lib/TLibCommon/TComPrediction.cpp
r667 r697 425 425 Bool dimDeltaDC = isDimDeltaDC( uiIntraMode ); 426 426 Bool isDmmMode = (dimType < DMM_NUM_TYPE); 427 #if !SEC_DMM3_RBC_F0147 427 428 Bool isRbcMode = (dimType == RBC_IDX); 429 #endif 428 430 429 431 Bool* biSegPattern = NULL; … … 441 443 dmmSegmentation = &(g_dmmWedgeLists[ g_aucConvertToBit[iWidth] ][ pcCU->getDmmWedgeTabIdx( dimType, uiAbsPartIdx ) ]); 442 444 } break; 445 #if !SEC_DMM3_RBC_F0147 443 446 case( DMM3_IDX ): 444 447 { … … 452 455 dmmSegmentation = &(g_dmmWedgeLists[ g_aucConvertToBit[iWidth] ][ uiTabIdx ]); 453 456 } break; 457 #endif 454 458 case( DMM4_IDX ): 455 459 { … … 495 499 Pel deltaDC2 = pcCU->getDimDeltaDC( dimType, 1, uiAbsPartIdx ); 496 500 #if H_3D_DIM_DMM 497 #if QC_DIM_DELTADC_UNIFY_F0132 501 #if QC_DIM_DELTADC_UNIFY_F0132 && !SEC_DMM3_RBC_F0147 498 502 if( isDmmMode || isRbcMode) 499 503 #else … … 1976 1980 1977 1981 #if H_3D_DIM_DMM 1982 #if !SEC_DMM3_RBC_F0147 1978 1983 UInt TComPrediction::xPredWedgeFromTex( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiWidth, UInt uiHeight, UInt intraTabIdx ) 1979 1984 { … … 1987 1992 return g_aauiWdgLstM3[g_aucConvertToBit[uiWidth]][uiColTexIntraDir-2].at(intraTabIdx); 1988 1993 } 1994 #endif 1989 1995 1990 1996 Void TComPrediction::xPredContourFromTex( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiWidth, UInt uiHeight, TComWedgelet* pcContourWedge ) -
branches/HTM-8.2-dev3-Samsung/source/Lib/TLibCommon/TComRom.cpp
r655 r697 604 604 std::vector< std::vector<TComWedgeRef> > g_dmmWedgeRefLists; 605 605 std::vector< std::vector<TComWedgeNode> > g_dmmWedgeNodeLists; 606 #if !SEC_DMM3_RBC_F0147 606 607 std::vector< std::vector< std::vector<UInt> > > g_aauiWdgLstM3; 608 #endif 607 609 608 610 Void initWedgeLists( Bool initNodeList ) … … 723 725 } 724 726 727 #if !SEC_DMM3_RBC_F0147 725 728 UInt uiThrSz = DMM3_SIMPLIFY_TR; 726 729 std::vector< std::vector<UInt> > auiWdgListSz; … … 739 742 } 740 743 g_aauiWdgLstM3.push_back(auiWdgListSz); 744 #endif 741 745 } 742 746 -
branches/HTM-8.2-dev3-Samsung/source/Lib/TLibCommon/TComRom.h
r655 r697 172 172 extern std::vector< std::vector<TComWedgeRef> > g_dmmWedgeRefLists; 173 173 extern std::vector< std::vector<TComWedgeNode> > g_dmmWedgeNodeLists; 174 #if !SEC_DMM3_RBC_F0147 174 175 extern std::vector< std::vector< std::vector<UInt> > > g_aauiWdgLstM3; 176 #endif 175 177 176 178 Void initWedgeLists( Bool initNodeList = false ); -
branches/HTM-8.2-dev3-Samsung/source/Lib/TLibCommon/TComWedgelet.h
r655 r697 50 50 enum DIM_IDX 51 51 { 52 #if SEC_DMM3_RBC_F0147 53 DMM1_IDX = 0, 54 DMM4_IDX = 1, 55 #else 52 56 DMM1_IDX = 0, 53 57 DMM3_IDX = 1, 54 58 DMM4_IDX = 2, 55 59 RBC_IDX = 3 60 #endif 56 61 }; 57 62 63 #if SEC_DMM3_RBC_F0147 64 #define DMM_NUM_TYPE 2 65 #define DIM_NUM_TYPE (DMM_NUM_TYPE) 66 #else 58 67 #define DMM_NUM_TYPE 3 59 68 #define RBC_NUM_TYPE 1 60 69 #define DIM_NUM_TYPE (DMM_NUM_TYPE+RBC_NUM_TYPE) 70 #endif 61 71 #define DIM_NO_IDX MAX_UINT 62 72 … … 75 85 #define DMM_NO_WEDGEINDEX MAX_UINT 76 86 #define DMM_NUM_WEDGE_REFINES 8 87 #if !SEC_DMM3_RBC_F0147 77 88 #define DMM3_SIMPLIFY_TR 1 89 #endif 78 90 79 91 enum WedgeResolution -
branches/HTM-8.2-dev3-Samsung/source/Lib/TLibCommon/TypeDef.h
r689 r697 39 39 #define _TYPEDEF__ 40 40 41 42 41 43 //! \ingroup TLibCommon 42 44 //! \{ … … 159 161 // LGE_SDC_REMOVE_DC_E0158 Removal of DC mode from SDC 160 162 // LGE_PKU_DMM3_OVERLAP_E0159_HHIFIX 1 Removal of overlap between DMM3 and DMM1 163 #define SEC_DMM3_RBC_F0147 1 // Removal of DMM3 and RBC from DMMs 161 164 162 165 #define H_3D_INTER_SDC 1 // INTER SDC, Inter simplified depth coding … … 215 218 #if H_3D_DIM 216 219 #define H_3D_DIM_DMM 1 // Depth Modeling Modes 220 #if !SEC_DMM3_RBC_F0147 217 221 #define H_3D_DIM_RBC 1 // Region Boundary Chain mode 222 #endif 218 223 #define H_3D_DIM_SDC 1 // Simplified Depth Coding method 219 224 #define H_3D_DIM_DLT 1 // Depth Lookup Table
Note: See TracChangeset for help on using the changeset viewer.