Changeset 1279 in 3DVCSoftware for branches/HTM-14.1-update-dev1/source/Lib/TLibEncoder/TEncSbac.cpp
- Timestamp:
- 15 Jul 2015, 14:57:32 (9 years ago)
- Location:
- branches/HTM-14.1-update-dev1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev1
-
branches/HTM-14.1-update-dev1/source/Lib/TLibEncoder/TEncSbac.cpp
r1258 r1279 68 68 , m_cCUMergeFlagExtSCModel ( 1, 1, NUM_MERGE_FLAG_EXT_CTX , m_contextModels + m_numContextModels, m_numContextModels) 69 69 , m_cCUMergeIdxExtSCModel ( 1, 1, NUM_MERGE_IDX_EXT_CTX , m_contextModels + m_numContextModels, m_numContextModels) 70 #if H_3D_ARP70 #if NH_3D_ARP 71 71 , m_cCUPUARPWSCModel ( 1, 1, NUM_ARPW_CTX , m_contextModels + m_numContextModels, m_numContextModels) 72 72 #endif 73 #if H_3D_IC73 #if NH_3D_IC 74 74 , m_cCUICFlagSCModel ( 1, 1, NUM_IC_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels) 75 75 #endif … … 115 115 , m_cDdcFlagSCModel ( 1, 1, NUM_DDC_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels) 116 116 #endif 117 #if H_3D_DBBP117 #if NH_3D_DBBP 118 118 , m_cDBBPFlagSCModel ( 1, 1, DBBP_NUM_FLAG_CTX , m_contextModels + m_numContextModels, m_numContextModels) 119 119 #endif … … 149 149 m_cCUMergeFlagExtSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_MERGE_FLAG_EXT); 150 150 m_cCUMergeIdxExtSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_MERGE_IDX_EXT); 151 #if H_3D_ARP151 #if NH_3D_ARP 152 152 m_cCUPUARPWSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_ARPW ); 153 153 #endif 154 #if H_3D_IC154 #if NH_3D_IC 155 155 m_cCUICFlagSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_IC_FLAG ); 156 156 #endif … … 196 196 m_cDdcFlagSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_DDC_FLAG ); 197 197 #endif 198 #if H_3D_DBBP198 #if NH_3D_DBBP 199 199 m_cDBBPFlagSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_DBBP_FLAG ); 200 200 #endif … … 237 237 curCost += m_cCUMergeFlagExtSCModel.calcCost ( curSliceType, qp, (UChar*)INIT_MERGE_FLAG_EXT); 238 238 curCost += m_cCUMergeIdxExtSCModel.calcCost ( curSliceType, qp, (UChar*)INIT_MERGE_IDX_EXT); 239 #if H_3D_ARP239 #if NH_3D_ARP 240 240 curCost += m_cCUPUARPWSCModel.calcCost ( curSliceType, qp, (UChar*)INIT_ARPW ); 241 241 #endif 242 #if H_3D_IC242 #if NH_3D_IC 243 243 curCost += m_cCUICFlagSCModel.calcCost ( curSliceType, qp, (UChar*)INIT_IC_FLAG ); 244 244 #endif … … 246 246 curCost += m_cSDCFlagSCModel.calcCost ( curSliceType, qp, (UChar*)INIT_SDC_FLAG ); 247 247 #endif 248 #if H_3D_DBBP248 #if NH_3D_DBBP 249 249 curCost += m_cDBBPFlagSCModel.calcCost ( curSliceType, qp, (UChar*)INIT_DBBP_FLAG ); 250 250 #endif … … 297 297 } 298 298 } 299 #if H_3D_ARP300 m_cCUPUARPWSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_ARPW );301 #endif302 #if H_3D_IC303 m_cCUICFlagSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_IC_FLAG );304 #endif305 #if H_3D_DBBP306 m_cDBBPFlagSCModel.initBuffer ( eSliceType, iQp, (UChar*)INIT_DBBP_FLAG );307 #endif308 299 309 300 … … 576 567 { 577 568 PartSize eSize = pcCU->getPartitionSize( uiAbsPartIdx ); 578 #if H_3D_QTLPC569 #if NH_3D_QTLPC 579 570 Bool bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag(); 580 571 TComPic *pcTexture = pcCU->getSlice()->getTexturePic(); … … 593 584 #endif 594 585 { 595 TComDataCU *pcTextureCU = pcTexture->getC U(pcCU->getAddr());596 UInt uiCUIdx = (pcCU->getZorderIdxInC U() == 0) ? uiAbsPartIdx : pcCU->getZorderIdxInCU();586 TComDataCU *pcTextureCU = pcTexture->getCtu(pcCU->getCtuRsAddr()); 587 UInt uiCUIdx = (pcCU->getZorderIdxInCtu() == 0) ? uiAbsPartIdx : pcCU->getZorderIdxInCtu(); 597 588 assert(pcTextureCU->getDepth(uiCUIdx) >= uiDepth); 598 589 if(pcTextureCU->getDepth(uiCUIdx) == uiDepth ) … … 625 616 DTRACE_CU("part_mode", eSize ) 626 617 #endif 627 #if H_3D_QTLPC618 #if NH_3D_QTLPC 628 619 if (depthDependent==false || uiTexturePart == SIZE_NxN|| uiTexturePart == SIZE_2Nx2N) 629 620 { … … 699 690 } 700 691 } 701 #if H_3D_QTLPC692 #if NH_3D_QTLPC 702 693 } 703 694 else if(uiTexturePart == SIZE_2NxN || uiTexturePart == SIZE_2NxnU || uiTexturePart == SIZE_2NxnD) … … 716 707 { 717 708 m_pcBinIf->encodeBin( 0, m_cCUPartSizeSCModel.get( 0, 0, 0) ); 718 if ( pcCU->getSlice()->getSPS()->getAMPAcc( uiDepth ))709 if ( pcCU->getSlice()->getSPS()->getUseAMP() && uiDepth < log2DiffMaxMinCodingBlockSize ) 719 710 { 720 711 m_pcBinIf->encodeBin( 1, m_cCUPartSizeSCModel.get( 0, 0, 1) ); … … 751 742 { 752 743 m_pcBinIf->encodeBin( 0, m_cCUPartSizeSCModel.get( 0, 0, 0) ); 753 if ( pcCU->getSlice()->getSPS()->get AMPAcc( uiDepth ))744 if ( pcCU->getSlice()->getSPS()->getUseAMP() && uiDepth < log2DiffMaxMinCodingBlockSize ) 754 745 { 755 746 m_pcBinIf->encodeBin( 1, m_cCUPartSizeSCModel.get( 0, 0, 1) ); … … 894 885 } 895 886 896 #if H_3D_ARP887 #if NH_3D_ARP 897 888 Void TEncSbac::codeARPW( TComDataCU* pcCU, UInt uiAbsPartIdx ) 898 889 { … … 914 905 #endif 915 906 916 #if H_3D_IC907 #if NH_3D_IC 917 908 /** code Illumination Compensation flag 918 909 * \param pcCU … … 949 940 950 941 assert( uiCtx < 3 ); 951 #if H_3D_QTLPC942 #if NH_3D_QTLPC 952 943 Bool bCodeSplitFlag = true; 953 944 … … 966 957 #endif 967 958 { 968 TComDataCU *pcTextureCU = pcTexture->getC U(pcCU->getAddr());969 UInt uiCUIdx = (pcCU->getZorderIdxInC U() == 0) ? uiAbsPartIdx : pcCU->getZorderIdxInCU();959 TComDataCU *pcTextureCU = pcTexture->getCtu(pcCU->getCtuRsAddr()); 960 UInt uiCUIdx = (pcCU->getZorderIdxInCtu() == 0) ? uiAbsPartIdx : pcCU->getZorderIdxInCtu(); 970 961 assert(pcTextureCU->getDepth(uiCUIdx) >= uiDepth); 971 962 bCodeSplitFlag = (pcTextureCU->getDepth(uiCUIdx) > uiDepth); … … 2635 2626 #endif 2636 2627 2637 #if H_3D_DBBP2628 #if NH_3D_DBBP 2638 2629 Void TEncSbac::codeDBBPFlag( TComDataCU* pcCU, UInt uiAbsPartIdx ) 2639 2630 {
Note: See TracChangeset for help on using the changeset viewer.