Changeset 1412 in 3DVCSoftware for branches/HTM-16.2-dev/source/Lib/TLibEncoder/TEncEntropy.cpp
- Timestamp:
- 12 Apr 2018, 11:12:21 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-16.2-dev/source/Lib/TLibEncoder/TEncEntropy.cpp
r1405 r1412 4 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-201 6, ITU/ISO/IEC6 * Copyright (c) 2010-2017, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 116 116 m_pcEntropyCoderIf->codeSkipFlag( pcCU, uiAbsPartIdx ); 117 117 } 118 #if NH_3D _DIS118 #if NH_3D 119 119 Void TEncEntropy::encodeDIS( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD ) 120 120 { … … 148 148 } 149 149 150 #if NH_3D _IC150 #if NH_3D 151 151 Void TEncEntropy::encodeICFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD ) 152 152 { 153 #if NH_3D_ARP154 153 if ( pcCU->isIntra( uiAbsPartIdx ) || ( pcCU->getSlice()->getViewIndex() == 0 ) || pcCU->getSlice()->getIsDepth() || pcCU->getARPW( uiAbsPartIdx ) > 0 ) 155 #else156 if ( pcCU->isIntra( uiAbsPartIdx ) || ( pcCU->getSlice()->getViewIndex() == 0 ) || pcCU->getSlice()->getIsDepth() )157 #endif158 154 { 159 155 return; … … 186 182 } 187 183 } 188 #endif 189 190 #if NH_3D_ARP 184 191 185 Void TEncEntropy::encodeARPW( TComDataCU* pcCU, UInt uiAbsPartIdx ) 192 186 { … … 715 709 #endif 716 710 717 #if NH_3D _SDC_INTRA711 #if NH_3D 718 712 if( pcCU->getSDCFlag( uiAbsPartIdx ) && pcCU->isIntra( uiAbsPartIdx ) ) 719 713 { … … 722 716 assert( pcCU->getCbf(uiAbsPartIdx, COMPONENT_Y) == 1 ); 723 717 } 724 #endif 725 #if NH_3D_SDC_INTER 718 726 719 if( pcCU->getSDCFlag( uiAbsPartIdx ) && !pcCU->isIntra( uiAbsPartIdx ) ) 727 720 { … … 730 723 assert( pcCU->getSlice()->getIsDepth() ); 731 724 } 732 #endif733 #if NH_3D734 725 if( pcCU->getSlice()->getIsDepth() ) 735 726 { 736 #if NH_3D_SDC_INTRA || NH_3D_SDC_INTER737 727 if( pcCU->getSDCFlag( uiAbsPartIdx ) ) 738 728 { … … 740 730 return; 741 731 } 742 #endif743 #if NH_3D_DMM744 732 if( pcCU->isIntra(uiAbsPartIdx) ) 745 733 { … … 754 742 } 755 743 } 756 #endif757 744 } 758 745 #endif … … 832 819 } 833 820 834 Void TEncEntropy::estimateBit (estBitsSbacStruct* pcEstBitsSbac, Int width, Int height, const ChannelType chType )821 Void TEncEntropy::estimateBit (estBitsSbacStruct* pcEstBitsSbac, Int width, Int height, const ChannelType chType, COEFF_SCAN_TYPE scanType ) 835 822 { 836 823 const UInt heightAtEntropyCoding = (width != height) ? (height >> 1) : height; 837 824 838 m_pcEntropyCoderIf->estBit ( pcEstBitsSbac, width, heightAtEntropyCoding, chType );825 m_pcEntropyCoderIf->estBit ( pcEstBitsSbac, width, heightAtEntropyCoding, chType, scanType ); 839 826 } 840 827 … … 851 838 } 852 839 853 #if NH_3D _DMM || NH_3D_SDC_INTRA || NH_3D_SDC_INTER840 #if NH_3D 854 841 Void TEncEntropy::encodeDeltaDC ( TComDataCU* pcCU, UInt absPartIdx ) 855 842 { 856 843 m_pcEntropyCoderIf->codeDeltaDC( pcCU, absPartIdx ); 857 844 } 858 #endif 859 #if NH_3D_SDC_INTRA || NH_3D_SDC_INTER 845 860 846 Void TEncEntropy::encodeSDCFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD ) 861 847 { … … 881 867 } 882 868 883 #endif 884 #if NH_3D_DBBP 869 885 870 Void TEncEntropy::encodeDBBPFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD ) 886 871 {
Note: See TracChangeset for help on using the changeset viewer.