Changeset 1094 in 3DVCSoftware for branches/HTM-12.2-dev2-LGE/source/Lib/TLibEncoder
- Timestamp:
- 3 Nov 2014, 01:32:52 (10 years ago)
- Location:
- branches/HTM-12.2-dev2-LGE/source/Lib/TLibEncoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-12.2-dev2-LGE/source/Lib/TLibEncoder/TEncCu.cpp
r1084 r1094 1869 1869 1870 1870 #endif 1871 1871 #if !LGE_DDD_REMOVAL_J0042_J0030 1872 1872 #if H_3D_DDD 1873 1873 Int iDDDCand = rpcTempCU->getUseDDDCandIdx(); 1874 1874 UChar ucDDDepth = rpcTempCU->getDDTmpDepth(); 1875 1875 rpcTempCU->setUseDDD( false, 0, uhDepth ); 1876 #endif 1876 1877 #endif 1877 1878 … … 1908 1909 rpcTempCU->setVSPFlagSubParts( vspFlag[uiMergeCand], 0, 0, uhDepth ); 1909 1910 #endif 1911 #if !LGE_DDD_REMOVAL_J0042_J0030 1910 1912 #if H_3D_DDD 1911 1913 if( rpcTempCU->getSlice()->getIsDepth() && rpcTempCU->getSlice()->getViewIndex() != 0 && iDDDCand == uiMergeCand ) … … 1918 1920 rpcTempCU->setUseDDD( false, 0, 0, uhDepth ); 1919 1921 } 1922 #endif 1920 1923 #endif 1921 1924 #if H_3D_SPIVMP … … 2204 2207 rpcTempCU->setPartSizeSubParts ( ePartSize, 0, uhDepth ); 2205 2208 rpcTempCU->setPredModeSubParts ( MODE_INTER, 0, uhDepth ); 2209 #if !LGE_DDD_REMOVAL_J0042_J0030 2206 2210 #if H_3D_DDD 2207 2211 rpcTempCU->setUseDDD( false, 0, uhDepth ); 2212 #endif 2208 2213 #endif 2209 2214 -
branches/HTM-12.2-dev2-LGE/source/Lib/TLibEncoder/TEncSearch.cpp
r1084 r1094 4143 4143 } 4144 4144 #endif 4145 4145 #if !LGE_DDD_REMOVAL_J0042_J0030 4146 4146 #if H_3D_DDD 4147 4147 if( uiMergeCand == pcCU->getUseDDDCandIdx() ) … … 4154 4154 pcCU->setUseDDD( false, uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx ) ); 4155 4155 } 4156 #endif 4156 4157 #endif 4157 4158 … … 4841 4842 pcCU->setVSPFlagSubParts( vspFlag[uiMRGIndex], uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4842 4843 #endif 4844 #if !LGE_DDD_REMOVAL_J0042_J0030 4843 4845 #if H_3D_DDD 4844 4846 if( uiMRGIndex == pcCU->getUseDDDCandIdx() ) … … 4853 4855 pcCU->setUseDDD( false, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4854 4856 } 4857 #endif 4855 4858 #endif 4856 4859 #if H_3D_SPIVMP … … 4930 4933 pcCU->setSPIVMPFlagSubParts(0, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4931 4934 #endif 4935 #if !LGE_DDD_REMOVAL_J0042_J0030 4932 4936 #if H_3D_DDD 4933 4937 pcCU->setUseDDD( false, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4938 #endif 4934 4939 #endif 4935 4940 // set ME result -
branches/HTM-12.2-dev2-LGE/source/Lib/TLibEncoder/TEncSlice.cpp
r976 r1094 1011 1011 } 1012 1012 } 1013 #if LGE_DEFAULT_DV_J0046 1014 pcSlice->setDefaultRefViewIdx( -1 ); 1015 pcSlice->setDefaultRefViewIdxAvailableFlag( false ); 1016 1017 Int valid = 0; 1018 Int viewIndex = 0; 1019 for( UInt uiBId = 0; uiBId < pcSlice->getViewIndex() && valid==0; uiBId++ ) 1020 { 1021 UInt uiBaseId = uiBId; 1022 TComPic* pcBasePic = pcSlice->getIvPic( false, uiBaseId ); 1023 for( Int iRefListId = 0; ( iRefListId < (pcSlice->isInterB()? 2:1) ) && !pcSlice->isIntra() && valid==0; iRefListId++ ) 1024 { 1025 RefPicList eRefPicListTest = RefPicList( iRefListId ); 1026 Int iNumRefPics = pcSlice->getNumRefIdx( eRefPicListTest ) ; 1027 for( Int iRefIndex = 0; iRefIndex < iNumRefPics; iRefIndex++ ) 1028 { 1029 if(pcBasePic->getPOC() == pcSlice->getRefPic( eRefPicListTest, iRefIndex )->getPOC() 1030 && pcBasePic->getViewIndex() == pcSlice->getRefPic( eRefPicListTest, iRefIndex )->getViewIndex()) 1031 { 1032 valid=1; 1033 viewIndex = uiBaseId; 1034 break; 1035 } 1036 } 1037 } 1038 } 1039 if( valid ) 1040 { 1041 pcSlice->setDefaultRefViewIdx( viewIndex ); 1042 pcSlice->setDefaultRefViewIdxAvailableFlag( true ); 1043 } 1044 #endif 1045 1013 1046 // for every CU in slice 1014 1047 #if H_3D … … 1169 1202 #endif 1170 1203 } 1171 1172 1204 // run CU encoder 1173 1205 m_pcCuEncoder->compressCU( pcCU ); -
branches/HTM-12.2-dev2-LGE/source/Lib/TLibEncoder/TEncSlice.h
r884 r1094 107 107 UInt m_uiSliceIdx; 108 108 std::vector<TEncSbac*> CTXMem; 109 #if !LGE_DDD_REMOVAL_J0042_J0030 109 110 #if H_3D_DDD 110 111 Int m_iDDDScale; 111 112 Int m_iDDDOffset; 112 113 UInt m_uiDDDPrecision; 114 #endif 113 115 #endif 114 116 public: … … 145 147 Void initCtxMem( UInt i ); 146 148 Void setCtxMem( TEncSbac* sb, Int b ) { CTXMem[b] = sb; } 147 149 #if !LGE_DDD_REMOVAL_J0042_J0030 148 150 #if H_3D_DDD 149 151 Void setDDDPar( Int iScale, Int iOffset, UInt uiPrecision ){ m_iDDDScale = iScale; m_iDDDOffset = iOffset; m_uiDDDPrecision = uiPrecision; } 152 #endif 150 153 #endif 151 154
Note: See TracChangeset for help on using the changeset viewer.