Changeset 162 in 3DVCSoftware for branches/HTM-4.1-dev1-LG/source/Lib
- Timestamp:
- 1 Nov 2012, 10:30:40 (12 years ago)
- Location:
- branches/HTM-4.1-dev1-LG/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-4.1-dev1-LG/source/Lib/TLibCommon/TComDataCU.cpp
r154 r162 4807 4807 UInt uiNumPartInCUWidth = m_pcPic->getNumPartInWidth(); 4808 4808 4809 Int aiDvMcpDvCand[2][7] = {{0,}, {0,}}; // dummy, 5 spatial + 1 temporal, DV-MCP ÁÖº¯ ºúÓ°¿¡¼ »ç¿E ÈDV¸¦ ÀúÀE4809 Int aiDvMcpDvCand[2][7] = {{0,}, {0,}}; // dummy, 5 spatial + 1 temporal, DV-MCP ÁÖº¯ ºúÓ°¿¡¼ »ç¿E?DV¸¦ ÀúÀE 4810 4810 Bool abDvMcpFlag [2][7] = {{false,},{false,}}; 4811 4811 //Int aiRefPOC [2][7] = {{-1,},{-1}}; // debug … … 4813 4813 Bool bTmpIsSkipped = false; 4814 4814 Bool bDvMcpIsFound = false; 4815 #if LGE_DVMCP_MEM_REDUCTION_B0135 4816 Int iLCUAddrDiff = 0; 4817 #endif 4815 4818 4816 4819 deriveLeftRightTopIdxGeneral( eCUMode, uiPartAddr, uiPartIdx, uiPartIdxLT, uiPartIdxRT ); … … 4878 4881 if(pcTmpCU != NULL && !pcTmpCU->isIntra( uiIdx )) 4879 4882 { 4883 #if LGE_DVMCP_MEM_REDUCTION_B0135 4884 iLCUAddrDiff = getAddr() - pcTmpCU->getAddr(); 4885 #endif 4880 4886 bTmpIsSkipped = pcTmpCU->isSkipped( uiIdx ); 4881 4887 for(Int iList = 0; iList < (getSlice()->isInterB() ? 2: 1); iList ++) … … 4894 4900 return; 4895 4901 } 4902 #if LGE_DVMCP_MEM_REDUCTION_B0135 4903 else if(iLCUAddrDiff == 0) //MCP, within same LCU 4904 #else 4896 4905 else // MCP 4906 #endif 4897 4907 { 4898 4908 cTmpMvPred = pcTmpCU->getCUMvField(eRefPicList)->getMv(uiIdx); … … 4915 4925 if(pcTmpCU != NULL && !pcTmpCU->isIntra( uiIdx ) ) 4916 4926 { 4927 #if LGE_DVMCP_MEM_REDUCTION_B0135 4928 iLCUAddrDiff = getAddr() - pcTmpCU->getAddr(); 4929 #endif 4917 4930 bTmpIsSkipped = pcTmpCU->isSkipped( uiIdx ); 4918 4931 for(Int iList = 0; iList < (getSlice()->isInterB() ? 2: 1); iList ++) … … 4931 4944 return; 4932 4945 } 4946 #if LGE_DVMCP_MEM_REDUCTION_B0135 4947 else if(iLCUAddrDiff == 0) 4948 #else 4933 4949 else // MCP 4950 #endif 4934 4951 { 4935 4952 cTmpMvPred = pcTmpCU->getCUMvField(eRefPicList)->getMv(uiIdx); … … 4991 5008 if(pcTmpCU != NULL && !pcTmpCU->isIntra( uiIdx )) 4992 5009 { 5010 #if LGE_DVMCP_MEM_REDUCTION_B0135 5011 iLCUAddrDiff = getAddr() - pcTmpCU->getAddr(); 5012 #endif 4993 5013 bTmpIsSkipped = pcTmpCU->isSkipped( uiIdx ); 4994 5014 for(Int iList = 0; iList < (getSlice()->isInterB() ? 2: 1); iList ++) … … 5007 5027 return; 5008 5028 } 5029 #if LGE_DVMCP_MEM_REDUCTION_B0135 5030 else if(iLCUAddrDiff <= 1) 5031 #else 5009 5032 else // MCP 5033 #endif 5010 5034 { 5011 5035 cTmpMvPred = pcTmpCU->getCUMvField(eRefPicList)->getMv(uiIdx); … … 5520 5544 if ( uiLCUIdx >= 0 && xGetColMVP( eRefPicList, uiLCUIdx, uiAbsPartAddr, cColMv, iRefIdx_Col ) ) 5521 5545 { 5546 #if FIX_LGE_DVMCP_B0133 5547 cColMv.m_bDvMcp = false; 5548 #endif 5522 5549 pInfo->m_acMvCand[pInfo->iN++] = cColMv; 5523 5550 } … … 5529 5556 if (xGetColMVP( eRefPicList, uiCurLCUIdx, uiPartIdxCenter, cColMv, iRefIdx_Col )) 5530 5557 { 5558 #if FIX_LGE_DVMCP_B0133 5559 cColMv.m_bDvMcp = false; 5560 #endif 5531 5561 pInfo->m_acMvCand[pInfo->iN++] = cColMv; 5532 5562 } -
branches/HTM-4.1-dev1-LG/source/Lib/TLibCommon/TypeDef.h
r154 r162 90 90 #define DVFROM_COL 6 91 91 #endif 92 #define FIX_LGE_DVMCP_B0133 1 93 #define LGE_DVMCP_MEM_REDUCTION_B0135 1 92 94 93 95
Note: See TracChangeset for help on using the changeset viewer.