Changeset 753 in 3DVCSoftware for branches/HTM-9.1-dev0-RWTH/source/Lib/TLibCommon
- Timestamp:
- 22 Dec 2013, 20:21:39 (11 years ago)
- Location:
- branches/HTM-9.1-dev0-RWTH/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-9.1-dev0-RWTH/source/Lib/TLibCommon/TComSlice.cpp
r751 r753 2581 2581 } 2582 2582 2583 #if RWTH_DELTA_DLT2584 Void TComDLT::getDeltaDLT( Int layerIdInVps, Int* piDLTInRef, Int iDLTInRefNum, Int* piDeltaDLTOut, Int *piDeltaDLTOutNum )2583 #if H_3D_DELTA_DLT 2584 Void TComDLT::getDeltaDLT( Int layerIdInVps, Int* piDLTInRef, UInt uiDLTInRefNum, Int* piDeltaDLTOut, UInt *puiDeltaDLTOutNum ) 2585 2585 { 2586 2586 Bool abBM0[ 256 ]; … … 2591 2591 2592 2592 // convert reference DLT to bit string 2593 for( Int i = 0; i < iDLTInRefNum; i++ )2593 for( Int i = 0; i < uiDLTInRefNum; i++ ) 2594 2594 { 2595 2595 abBM0[ piDLTInRef[ i ] ] = true; … … 2601 2601 } 2602 2602 2603 *p iDeltaDLTOutNum = 0;2603 *puiDeltaDLTOutNum = 0; 2604 2604 for( Int i = 0; i < 256; i++ ) 2605 2605 { 2606 2606 if( abBM0[ i ] ^ abBM1[ i ] ) 2607 2607 { 2608 piDeltaDLTOut[ *p iDeltaDLTOutNum ] = i;2609 *p iDeltaDLTOutNum = *piDeltaDLTOutNum + 1;2610 } 2611 } 2612 } 2613 2614 Void TComDLT::setDeltaDLT( Int layerIdInVps, Int* piDLTInRef, Int iDLTInRefNum, Int* piDeltaDLTIn, Int piDeltaDLTInNum )2608 piDeltaDLTOut[ *puiDeltaDLTOutNum ] = i; 2609 *puiDeltaDLTOutNum = *puiDeltaDLTOutNum + 1; 2610 } 2611 } 2612 } 2613 2614 Void TComDLT::setDeltaDLT( Int layerIdInVps, Int* piDLTInRef, UInt uiDLTInRefNum, Int* piDeltaDLTIn, UInt uiDeltaDLTInNum ) 2615 2615 { 2616 2616 Bool abBM0[ 256 ]; … … 2621 2621 2622 2622 // convert reference DLT to bit string 2623 for( Int i = 0; i < iDLTInRefNum; i++ )2623 for( Int i = 0; i < uiDLTInRefNum; i++ ) 2624 2624 { 2625 2625 abBM0[ piDLTInRef[ i ] ] = true; 2626 2626 } 2627 2627 // convert delta DLT to bit string 2628 for( Int i = 0; i < piDeltaDLTInNum; i++ )2628 for( Int i = 0; i < uiDeltaDLTInNum; i++ ) 2629 2629 { 2630 2630 abBM1[ piDeltaDLTIn[ i ] ] = true; -
branches/HTM-9.1-dev0-RWTH/source/Lib/TLibCommon/TComSlice.h
r751 r753 1204 1204 Int m_iNumDepthViews; 1205 1205 UInt m_uiDepthViewBitDepth; 1206 1207 #if RWTH_DELTA_DLT1208 Bool m_bUseDeltaDLTFlag [ MAX_NUM_LAYERS ];1209 #endif1210 1206 1211 1207 public: … … 1218 1214 Bool getUseDLTFlag ( Int layerIdInVps ) { return m_bUseDLTFlag[ layerIdInVps ]; } 1219 1215 Void setUseDLTFlag ( Int layerIdInVps, Bool b ) { m_bUseDLTFlag[ layerIdInVps ] = b; } 1220 1221 #if RWTH_DELTA_DLT1222 Bool getUseDeltaDLTFlag ( Int layerIdInVps ) { return m_bUseDeltaDLTFlag[ layerIdInVps ]; }1223 Void setUseDeltaDLTFlag ( Int layerIdInVps, Bool b ) { m_bUseDeltaDLTFlag[ layerIdInVps ] = b; }1224 #endif1225 1216 1226 1217 Bool getInterViewDltPredEnableFlag( Int layerIdInVps ) { return m_bInterViewDltPredEnableFlag[ layerIdInVps ]; } 1227 1218 Void setInterViewDltPredEnableFlag( Int layerIdInVps, Bool b ) { m_bInterViewDltPredEnableFlag[ layerIdInVps ] = b; } 1228 1229 1219 1230 1220 Void setNumDepthViews ( Int n ) { m_iNumDepthViews = n; } … … 1239 1229 Pel idx2DepthValue( Int layerIdInVps, UInt uiIdx ) { return getUseDLTFlag(layerIdInVps)?m_iIdx2DepthValue[layerIdInVps][uiIdx]:uiIdx; } 1240 1230 Void setDepthLUTs( Int layerIdInVps, Int* idx2DepthValue = NULL, Int iNumDepthValues = 0 ); 1241 #if RWTH_DELTA_DLT 1242 Void getDeltaDLT( Int layerIdInVps, Int* piDLTInRef, Int iDLTInRefNum, Int* piDeltaDLTOut, Int *piDeltaDLTOutNum ); 1243 Void setDeltaDLT( Int layerIdInVps, Int* piDLTInRef, Int iDLTInRefNum, Int* piDeltaDLTIn, Int piDeltaDLTInNum ); 1231 #if H_3D_DELTA_DLT 1232 Int* idx2DepthValue( Int layerIdInVps ) { return m_iIdx2DepthValue[layerIdInVps]; } 1233 Void getDeltaDLT( Int layerIdInVps, Int* piDLTInRef, UInt uiDLTInRefNum, Int* piDeltaDLTOut, UInt *puiDeltaDLTOutNum ); 1234 Void setDeltaDLT( Int layerIdInVps, Int* piDLTInRef, UInt uiDLTInRefNum, Int* piDeltaDLTIn, UInt uiDeltaDLTInNum ); 1244 1235 #endif 1245 1236 }; -
branches/HTM-9.1-dev0-RWTH/source/Lib/TLibCommon/TypeDef.h
r751 r753 222 222 #define Log2( n ) ( log((double)n) / log(2.0) ) 223 223 #endif 224 #define RWTH_DELTA_DLT 1224 #define H_3D_DELTA_DLT 1 225 225 #endif 226 226
Note: See TracChangeset for help on using the changeset viewer.