Changeset 1304 in 3DVCSoftware for branches/HTM-14.1-update-dev1/source/Lib/TLibDecoder
- Timestamp:
- 29 Jul 2015, 12:04:32 (9 years ago)
- Location:
- branches/HTM-14.1-update-dev1
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev1
- Property svn:mergeinfo changed
/branches/HTM-14.1-update-dev1-LG (added) merged: 1296,1303
- Property svn:mergeinfo changed
-
branches/HTM-14.1-update-dev1/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1287 r1304 3374 3374 } 3375 3375 #endif 3376 #if NH_3D_SDC_INTRA || H_3D_INTER_SDC3376 #if NH_3D_SDC_INTRA || NH_3D_SDC_INTER 3377 3377 Void TDecCavlc::parseSDCFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ) 3378 3378 { -
branches/HTM-14.1-update-dev1/source/Lib/TLibDecoder/TDecCAVLC.h
r1279 r1304 123 123 Void parseICFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ); 124 124 #endif 125 #if NH_3D_DMM || NH_3D_SDC_INTRA || H_3D_INTER_SDC125 #if NH_3D_DMM || NH_3D_SDC_INTRA || NH_3D_SDC_INTER 126 126 Void parseDeltaDC ( TComDataCU* /*pcCU*/, UInt /*absPartIdx*/, UInt /*depth*/ ) { assert(0); }; 127 127 #endif 128 #if NH_3D_SDC_INTRA || H_3D_INTER_SDC128 #if NH_3D_SDC_INTRA || NH_3D_SDC_INTER 129 129 Void parseSDCFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ); 130 130 #endif -
branches/HTM-14.1-update-dev1/source/Lib/TLibDecoder/TDecCu.cpp
r1288 r1304 656 656 { 657 657 #endif 658 #if H_3D_INTER_SDC658 #if NH_3D_SDC_INTER 659 659 if( m_ppcCU[uiDepth]->getSDCFlag( 0 ) ) 660 660 { … … 665 665 #endif 666 666 xReconInter( m_ppcCU[uiDepth], uiDepth ); 667 #if H_3D_INTER_SDC667 #if NH_3D_SDC_INTER 668 668 } 669 669 #endif … … 836 836 } 837 837 #endif 838 #if H_3D_INTER_SDC838 #if NH_3D_SDC_INTER 839 839 Void TDecCu::xReconInterSDC( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ) 840 840 { … … 847 847 Pel *pResi; 848 848 UInt uiPelX, uiPelY; 849 UInt uiResiStride = m_ppcYuvResi[uiDepth]->getStride(); 850 851 pResi = m_ppcYuvResi[uiDepth]->getLumaAddr( 0 ); 849 UInt uiResiStride = m_ppcYuvResi[uiDepth]->getStride( COMPONENT_Y ); 850 Int bitDepthC = pcCU->getSlice()->getSPS()->getBitDepth(CHANNEL_TYPE_CHROMA); 851 852 pResi = m_ppcYuvResi[uiDepth]->getAddr( COMPONENT_Y ); 852 853 for( uiPelY = 0; uiPelY < uiHeight; uiPelY++ ) 853 854 { … … 859 860 } 860 861 861 m_ppcYuvReco[uiDepth]->addClip( m_ppcYuvReco[uiDepth], m_ppcYuvResi[uiDepth], 0, pcCU->getWidth( 0 ) );862 m_ppcYuvReco[uiDepth]->addClip( m_ppcYuvReco[uiDepth], m_ppcYuvResi[uiDepth], 0, pcCU->getWidth( 0 ), pcCU->getSlice()->getSPS()->getBitDepths() ); 862 863 863 864 // clear UV 864 UInt uiStrideC = m_ppcYuvReco[uiDepth]->get CStride();865 Pel *pRecCb = m_ppcYuvReco[uiDepth]->get CbAddr();866 Pel *pRecCr = m_ppcYuvReco[uiDepth]->get CrAddr();865 UInt uiStrideC = m_ppcYuvReco[uiDepth]->getStride( COMPONENT_Cb ); 866 Pel *pRecCb = m_ppcYuvReco[uiDepth]->getAddr( COMPONENT_Cb ); 867 Pel *pRecCr = m_ppcYuvReco[uiDepth]->getAddr( COMPONENT_Cr ); 867 868 868 869 for (Int y = 0; y < uiHeight/2; y++) … … 870 871 for (Int x = 0; x < uiWidth/2; x++) 871 872 { 872 pRecCb[x] = (Pel)( 1 << ( g_bitDepthC - 1 ) );873 pRecCr[x] = (Pel)( 1 << ( g_bitDepthC - 1 ) );873 pRecCb[x] = (Pel)( 1 << ( bitDepthC - 1 ) ); 874 pRecCr[x] = (Pel)( 1 << ( bitDepthC - 1 ) ); 874 875 } 875 876 -
branches/HTM-14.1-update-dev1/source/Lib/TLibDecoder/TDecCu.h
r1279 r1304 130 130 Void xReconIntraSDC ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ); 131 131 #endif 132 #if H_3D_INTER_SDC132 #if NH_3D_SDC_INTER 133 133 Void xReconInterSDC ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ); 134 134 #endif -
branches/HTM-14.1-update-dev1/source/Lib/TLibDecoder/TDecEntropy.cpp
r1279 r1304 298 298 decodeDBBPFlag( pcCU, uiAbsPartIdx, uiDepth ); 299 299 #endif 300 //decodeSDCFlag ( pcCU, uiAbsPartIdx, uiDepth ); 301 300 #if NH_3D_SDC_INTER 301 decodeSDCFlag ( pcCU, uiAbsPartIdx, uiDepth ); 302 #endif 302 303 #if NH_3D_ARP 303 304 decodeARPW ( pcCU, uiAbsPartIdx, uiDepth ); … … 1092 1093 } 1093 1094 #endif 1094 #if H_3D_INTER_SDC1095 #if NH_3D_SDC_INTER 1095 1096 if( pcCU->getSDCFlag( uiAbsPartIdx ) && !pcCU->isIntra( uiAbsPartIdx) ) 1096 1097 { … … 1103 1104 if( pcCU->getSlice()->getIsDepth() ) 1104 1105 { 1105 #if NH_3D_SDC_INTRA || H_3D_INTER_SDC1106 #if NH_3D_SDC_INTRA || NH_3D_SDC_INTER 1106 1107 if( pcCU->getSDCFlag( uiAbsPartIdx ) ) 1107 1108 { … … 1161 1162 } 1162 1163 1163 #if NH_3D_SDC_INTRA || H_3D_INTER_SDC1164 #if NH_3D_SDC_INTRA || NH_3D_SDC_INTER 1164 1165 Void TDecEntropy::decodeSDCFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ) 1165 1166 { -
branches/HTM-14.1-update-dev1/source/Lib/TLibDecoder/TDecEntropy.h
r1279 r1304 89 89 virtual Void parseICFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ) = 0; 90 90 #endif 91 #if NH_3D_DMM || NH_3D_SDC_INTRA || H_3D_INTER_SDC91 #if NH_3D_DMM || NH_3D_SDC_INTRA || NH_3D_SDC_INTER 92 92 virtual Void parseDeltaDC ( TComDataCU* pcCU, UInt absPartIdx, UInt depth ) = 0; 93 93 #endif 94 #if NH_3D_SDC_INTRA || H_3D_INTER_SDC94 #if NH_3D_SDC_INTRA || NH_3D_SDC_INTER 95 95 virtual Void parseSDCFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ) = 0; 96 96 #endif … … 181 181 #endif 182 182 183 #if NH_3D_SDC_INTRA || H_3D_INTER_SDC183 #if NH_3D_SDC_INTRA || NH_3D_SDC_INTER 184 184 Void decodeSDCFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ); 185 185 #endif -
branches/HTM-14.1-update-dev1/source/Lib/TLibDecoder/TDecSbac.cpp
r1279 r1304 111 111 , m_cDmmModeSCModel ( 1, 1, NUM_DMM_MODE_CTX , m_contextModels + m_numContextModels, m_numContextModels) 112 112 #endif 113 #if NH_3D_DMM || NH_3D_SDC_INTRA 113 #if NH_3D_DMM || NH_3D_SDC_INTRA || NH_3D_SDC_INTER 114 114 , m_cDdcDataSCModel ( 1, 1, NUM_DDC_DATA_CTX , m_contextModels + m_numContextModels, m_numContextModels) 115 , m_cSDCFlagSCModel ( 1, 1, NUM_SDC_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels) 115 116 #endif 116 117 #if NH_3D_SDC_INTRA 117 118 , m_cSDCResidualFlagSCModel ( 1, 1, SDC_NUM_RESIDUAL_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels) 118 119 , m_cSDCResidualSCModel ( 1, 1, SDC_NUM_RESIDUAL_CTX , m_contextModels + m_numContextModels, m_numContextModels) 119 , m_cSDCFlagSCModel ( 1, 1, NUM_SDC_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels)120 120 , m_cDdcFlagSCModel ( 1, 1, NUM_DDC_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels) 121 121 #endif … … 202 202 m_cDmmModeSCModel.initBuffer ( sliceType, qp, (UChar*)INIT_DMM_MODE ); 203 203 #endif 204 #if NH_3D_DMM || NH_3D_SDC_INTRA 204 #if NH_3D_DMM || NH_3D_SDC_INTRA || NH_3D_SDC_INTER 205 205 m_cDdcDataSCModel.initBuffer ( sliceType, qp, (UChar*)INIT_DDC_DATA ); 206 m_cSDCFlagSCModel.initBuffer ( sliceType, qp, (UChar*)INIT_SDC_FLAG ); 206 207 #endif 207 208 #if NH_3D_SDC_INTRA 208 209 m_cSDCResidualFlagSCModel.initBuffer ( sliceType, qp, (UChar*)INIT_SDC_RESIDUAL_FLAG ); 209 210 m_cSDCResidualSCModel.initBuffer ( sliceType, qp, (UChar*)INIT_SDC_RESIDUAL ); 210 m_cSDCFlagSCModel.initBuffer ( sliceType, qp, (UChar*)INIT_SDC_FLAG );211 211 m_cDdcFlagSCModel.initBuffer ( sliceType, qp, (UChar*)INIT_DDC_FLAG ); 212 212 #endif … … 2319 2319 #endif 2320 2320 2321 #if NH_3D_DMM || NH_3D_SDC_INTRA || H_3D_INTER_SDC2321 #if NH_3D_DMM || NH_3D_SDC_INTRA || NH_3D_SDC_INTER 2322 2322 Void TDecSbac::parseDeltaDC( TComDataCU* pcCU, UInt absPartIdx, UInt depth ) 2323 2323 { 2324 #if NH_3D_SDC_INTRA || H_3D_INTER_SDC2324 #if NH_3D_SDC_INTRA || NH_3D_SDC_INTER 2325 2325 if( !(pcCU->getSDCFlag( absPartIdx )) ) 2326 2326 #endif … … 2370 2370 #endif 2371 2371 } 2372 #if H_3D_INTER_SDC2372 #if NH_3D_SDC_INTER 2373 2373 else 2374 2374 { … … 2489 2489 } 2490 2490 #endif 2491 #if NH_3D_SDC_INTRA || H_3D_INTER_SDC2491 #if NH_3D_SDC_INTRA || NH_3D_SDC_INTER 2492 2492 Void TDecSbac::parseSDCFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ) 2493 2493 { -
branches/HTM-14.1-update-dev1/source/Lib/TLibDecoder/TDecSbac.h
r1279 r1304 107 107 Void xReadCoefRemainExGolomb ( UInt &rSymbol, UInt &rParam, const Bool useLimitedPrefixLength, const Int maxLog2TrDynamicRange ); 108 108 #endif 109 #if NH_3D_DMM || NH_3D_SDC_INTRA || H_3D_INTER_SDC109 #if NH_3D_DMM || NH_3D_SDC_INTRA || NH_3D_SDC_INTER 110 110 Void xReadExGolombLevelDdc( UInt& ruiSymbol ); 111 111 Void xParseDeltaDC ( Pel& rValDeltaDC, UInt uiNumSeg ); … … 119 119 Void xParseSDCResidualData ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPart ); 120 120 #endif 121 #if NH_3D_SDC_INTRA || H_3D_INTER_SDC121 #if NH_3D_SDC_INTRA || NH_3D_SDC_INTER 122 122 Void parseSDCFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ); 123 123 #endif … … 136 136 Void parseDIS ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ); 137 137 #endif 138 #if NH_3D_DMM || NH_3D_SDC_INTRA || H_3D_INTER_SDC138 #if NH_3D_DMM || NH_3D_SDC_INTRA || NH_3D_SDC_INTER 139 139 Void parseDeltaDC ( TComDataCU* pcCU, UInt absPartIdx, UInt depth ); 140 140 #endif … … 229 229 ContextModel3DBuffer m_cDmmModeSCModel; 230 230 #endif 231 #if NH_3D_DMM || NH_3D_SDC_INTRA 231 #if NH_3D_DMM || NH_3D_SDC_INTRA || NH_3D_SDC_INTER 232 232 ContextModel3DBuffer m_cDdcDataSCModel; 233 ContextModel3DBuffer m_cSDCFlagSCModel; 233 234 #endif 234 235 #if NH_3D_SDC_INTRA 235 236 ContextModel3DBuffer m_cSDCResidualFlagSCModel; 236 237 ContextModel3DBuffer m_cSDCResidualSCModel; 237 ContextModel3DBuffer m_cSDCFlagSCModel;238 238 ContextModel3DBuffer m_cDdcFlagSCModel; 239 239 #endif
Note: See TracChangeset for help on using the changeset viewer.