Changeset 156 in 3DVCSoftware
- Timestamp:
- 29 Oct 2012, 02:20:31 (12 years ago)
- Location:
- branches/HTM-4.1-dev2-LG/source
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-4.1-dev2-LG/source/App/TAppEncoder/TAppEncTop.cpp
r152 r156 301 301 m_acTEncTopList[iViewIdx]->setUseSAO ( m_abUseSAO[0] ); 302 302 #if LGE_ILLUCOMP_B0045 303 m_acTEncTopList[iViewIdx]->setUseIC ( m_bUseIC );303 m_acTEncTopList[iViewIdx]->setUseIC ( m_bUseIC ); 304 304 #endif 305 305 #if SAO_UNIT_INTERLEAVING … … 583 583 m_acTEncDepthTopList[iViewIdx]->setUseSAO ( m_abUseSAO[1] ); 584 584 #if LGE_ILLUCOMP_B0045 585 m_acTEncDepthTopList[iViewIdx]->setUseIC ( false );585 m_acTEncDepthTopList[iViewIdx]->setUseIC ( false ); 586 586 #endif 587 587 #if SAO_UNIT_INTERLEAVING -
branches/HTM-4.1-dev2-LG/source/Lib/TLibCommon/ContextTables.h
r152 r156 187 187 #if LGE_ILLUCOMP_B0045 188 188 static const UChar 189 189 INIT_IC_FLAG[3][NUM_IC_FLAG_CTX] = 190 190 { 191 191 { CNU, CNU, CNU, }, -
branches/HTM-4.1-dev2-LG/source/Lib/TLibCommon/TComDataCU.cpp
r152 r156 213 213 m_pbMergeFlag = (Bool* )xMalloc(Bool, uiNumPartition); 214 214 #if LGE_ILLUCOMP_B0045 215 m_pbICFlag = (Bool* )xMalloc(Bool, uiNumPartition);215 m_pbICFlag = (Bool* )xMalloc(Bool, uiNumPartition); 216 216 #endif 217 217 m_puhMergeIndex = (UChar* )xMalloc(UChar, uiNumPartition); … … 362 362 if ( m_pbMergeFlag ) { xFree(m_pbMergeFlag); m_pbMergeFlag = NULL; } 363 363 #if LGE_ILLUCOMP_B0045 364 if ( m_pbICFlag ) { xFree(m_pbICFlag); m_pbICFlag = NULL; }364 if ( m_pbICFlag ) { xFree(m_pbICFlag); m_pbICFlag = NULL; } 365 365 #endif 366 366 if ( m_puhMergeIndex ) { xFree(m_puhMergeIndex); m_puhMergeIndex = NULL; } … … 558 558 m_pbMergeFlag[ui]=pcFrom->m_pbMergeFlag[ui]; 559 559 #if LGE_ILLUCOMP_B0045 560 m_pbICFlag[ui]=pcFrom->m_pbICFlag[ui];560 m_pbICFlag[ui]=pcFrom->m_pbICFlag[ui]; 561 561 #endif 562 562 m_puhMergeIndex[ui]=pcFrom->m_puhMergeIndex[ui]; … … 593 593 memset( m_pbMergeFlag + firstElement, false, numElements * sizeof( *m_pbMergeFlag ) ); 594 594 #if LGE_ILLUCOMP_B0045 595 memset( m_pbICFlag + firstElement, false, numElements * sizeof( *m_pbICFlag ) );595 memset( m_pbICFlag + firstElement, false, numElements * sizeof( *m_pbICFlag ) ); 596 596 #endif 597 597 memset( m_puhMergeIndex + firstElement, 0, numElements * sizeof( *m_puhMergeIndex ) ); … … 779 779 m_pbMergeFlag[ui] = 0; 780 780 #if LGE_ILLUCOMP_B0045 781 m_pbICFlag[ui] = false;781 m_pbICFlag[ui] = false; 782 782 #endif 783 783 m_puhMergeIndex[ui] = 0; … … 961 961 m_pbMergeFlag[ui]=pcCU->m_pbMergeFlag[uiPartOffset+ui]; 962 962 #if LGE_ILLUCOMP_B0045 963 m_pbICFlag[ui]=pcCU->m_pbICFlag[uiPartOffset+ui];963 m_pbICFlag[ui]=pcCU->m_pbICFlag[uiPartOffset+ui]; 964 964 #endif 965 965 m_puhMergeIndex[ui]=pcCU->m_puhMergeIndex[uiPartOffset+ui]; -
branches/HTM-4.1-dev2-LG/source/Lib/TLibCommon/TComPrediction.cpp
r152 r156 629 629 { 630 630 #if LGE_ILLUCOMP_B0045 631 if( pcCU->getSlice()->getPPS()->getUseWP() && !pcCU->getICFlag(uiPartAddr))631 if( pcCU->getSlice()->getPPS()->getUseWP() && !pcCU->getICFlag(uiPartAddr)) 632 632 #else 633 633 if( pcCU->getSlice()->getPPS()->getUseWP()) … … 649 649 } 650 650 #if LGE_ILLUCOMP_B0045 651 if( pcCU->getSlice()->getPPS()->getUseWP() && !pcCU->getICFlag(uiPartAddr) )651 if( pcCU->getSlice()->getPPS()->getUseWP() && !pcCU->getICFlag(uiPartAddr) ) 652 652 #else 653 653 if ( pcCU->getSlice()->getPPS()->getUseWP() ) … … 698 698 { 699 699 #if LGE_ILLUCOMP_B0045 700 if( pcCU->getSlice()->getPPS()->getUseWP() && !pcCU->getICFlag(uiPartAddr))700 if( pcCU->getSlice()->getPPS()->getUseWP() && !pcCU->getICFlag(uiPartAddr)) 701 701 #else 702 702 if( pcCU->getSlice()->getPPS()->getUseWP()) … … 723 723 #endif 724 724 #if LGE_ILLUCOMP_B0045 725 if( pcCU->getSlice()->getPPS()->getUseWP() && !pcCU->getICFlag(uiPartAddr))725 if( pcCU->getSlice()->getPPS()->getUseWP() && !pcCU->getICFlag(uiPartAddr)) 726 726 #else 727 727 if ( pcCU->getSlice()->getPPS()->getUseWP() ) -
branches/HTM-4.1-dev2-LG/source/Lib/TLibCommon/TComSlice.cpp
r152 r156 1370 1370 iSumOrgSAD += abs(aiCurrHist[i] - aiRefOrgHist[i]); 1371 1371 } 1372 //printf("iSumOrgSAD : %d\n",iSumOrgSAD);1373 1372 // Setting 1374 1373 if ( iSumOrgSAD > Int(dThresholdOrgSAD * iWidth * iHeight) ) 1375 1374 { 1376 1375 m_bApplyIC = true; 1377 //printf("ApplyIC\n");1378 1376 } 1379 1377 else -
branches/HTM-4.1-dev2-LG/source/Lib/TLibDecoder/TDecCu.cpp
r152 r156 390 390 } 391 391 #if LGE_ILLUCOMP_B0045 392 m_pcEntropyDecoder->decodeICFlag( pcCU, uiAbsPartIdx, uiDepth );392 m_pcEntropyDecoder->decodeICFlag( pcCU, uiAbsPartIdx, uiDepth ); 393 393 #endif 394 394 #if HHI_MPI -
branches/HTM-4.1-dev2-LG/source/Lib/TLibEncoder/TEncCu.cpp
r153 r156 735 735 Bool bResPredFlag = ( uiResPrdId > 0 ); 736 736 #if LGE_ILLUCOMP_B0045 737 for(UInt uiICId = 0; uiICId < (bICEnabled ? 2 : 1); uiICId++)738 {739 Bool bICFlag = (uiICId ? true : false);740 rpcTempCU->setICFlagSubParts(bICFlag, 0, 0, uiDepth);737 for(UInt uiICId = 0; uiICId < (bICEnabled ? 2 : 1); uiICId++) 738 { 739 Bool bICFlag = (uiICId ? true : false); 740 rpcTempCU->setICFlagSubParts(bICFlag, 0, 0, uiDepth); 741 741 #endif 742 742 #endif … … 763 763 } 764 764 #if LGE_ILLUCOMP_B0045_ENCSIMP 765 if(bICFlag && rpcBestCU->getMergeFlag(0) && !rpcBestCU->getICFlag(0))766 {767 bICEnabled = false;768 break;769 }765 if(bICFlag && rpcBestCU->getMergeFlag(0) && !rpcBestCU->getICFlag(0)) 766 { 767 bICEnabled = false; 768 break; 769 } 770 770 #endif 771 771 // 2Nx2N, NxN … … 788 788 } 789 789 #if LGE_ILLUCOMP_B0045 790 }790 } 791 791 #endif 792 792 #if HHI_INTER_VIEW_RESIDUAL_PRED … … 877 877 Bool bResPredFlag = ( uiResPrdId > 0 ); 878 878 #if LGE_ILLUCOMP_B0045 879 for(UInt uiICId = 0; uiICId < (bICEnabled ? 2 : 1); uiICId++)880 {881 Bool bICFlag = (uiICId ? true : false);882 rpcTempCU->setICFlagSubParts(bICFlag, 0, 0, uiDepth);879 for(UInt uiICId = 0; uiICId < (bICEnabled ? 2 : 1); uiICId++) 880 { 881 Bool bICFlag = (uiICId ? true : false); 882 rpcTempCU->setICFlagSubParts(bICFlag, 0, 0, uiDepth); 883 883 #endif 884 884 #endif … … 1418 1418 #endif 1419 1419 #if LGE_ILLUCOMP_B0045 1420 }1420 } 1421 1421 #endif 1422 1422 #if HHI_INTER_VIEW_RESIDUAL_PRED … … 1446 1446 { 1447 1447 #if LGE_ILLUCOMP_B0045 1448 rpcTempCU->setICFlagSubParts(false, 0, 0, uiDepth);1448 rpcTempCU->setICFlagSubParts(false, 0, 0, uiDepth); 1449 1449 #endif 1450 1450 xCheckRDCostIntra( rpcBestCU, rpcTempCU, SIZE_2Nx2N ); … … 1466 1466 { 1467 1467 #if LGE_ILLUCOMP_B0045 1468 rpcTempCU->setICFlagSubParts(false, 0, 0, uiDepth);1468 rpcTempCU->setICFlagSubParts(false, 0, 0, uiDepth); 1469 1469 #endif 1470 1470 xCheckRDCostIntra( rpcBestCU, rpcTempCU, SIZE_NxN ); … … 1502 1502 { 1503 1503 #if LGE_ILLUCOMP_B0045 1504 rpcTempCU->setICFlagSubParts(false, 0, 0, uiDepth);1504 rpcTempCU->setICFlagSubParts(false, 0, 0, uiDepth); 1505 1505 #endif 1506 1506 xCheckIntraPCM (rpcBestCU, rpcTempCU); … … 2148 2148 m_pcEntropyCoder->encodeMergeIndex( pcCU, uiAbsPartIdx, 0 ); 2149 2149 #if LGE_ILLUCOMP_B0045 2150 m_pcEntropyCoder->encodeICFlag ( pcCU, uiAbsPartIdx );2150 m_pcEntropyCoder->encodeICFlag ( pcCU, uiAbsPartIdx ); 2151 2151 #endif 2152 2152 #if HHI_INTER_VIEW_RESIDUAL_PRED … … 2179 2179 m_pcEntropyCoder->encodePredInfo( pcCU, uiAbsPartIdx ); 2180 2180 #if LGE_ILLUCOMP_B0045 2181 m_pcEntropyCoder->encodeICFlag ( pcCU, uiAbsPartIdx );2181 m_pcEntropyCoder->encodeICFlag ( pcCU, uiAbsPartIdx ); 2182 2182 #endif 2183 2183 #if HHI_INTER_VIEW_RESIDUAL_PRED … … 2303 2303 #endif 2304 2304 #if LGE_ILLUCOMP_B0045 2305 rpcTempCU->setICFlagSubParts(bICFlag, 0, 0, uhDepth);2305 rpcTempCU->setICFlagSubParts(bICFlag, 0, 0, uhDepth); 2306 2306 #endif 2307 2307 … … 3218 3218 m_pcEntropyCoder->encodeMergeIndex( pcCU, 0, 0, true ); 3219 3219 #if LGE_ILLUCOMP_B0045 3220 m_pcEntropyCoder->encodeICFlag( pcCU, 0, true );3220 m_pcEntropyCoder->encodeICFlag( pcCU, 0, true ); 3221 3221 #endif 3222 3222 } … … 3228 3228 m_pcEntropyCoder->encodePredInfo( pcCU, 0, true ); 3229 3229 #if LGE_ILLUCOMP_B0045 3230 m_pcEntropyCoder->encodeICFlag( pcCU, 0, true );3230 m_pcEntropyCoder->encodeICFlag( pcCU, 0, true ); 3231 3231 #endif 3232 3232 } -
branches/HTM-4.1-dev2-LG/source/Lib/TLibEncoder/TEncSbac.cpp
r152 r156 231 231 curCost += m_cCUSkipFlagSCModel.calcCost ( curSliceType, qp, (UChar*)INIT_SKIP_FLAG ); 232 232 #if LGE_ILLUCOMP_B0045 233 curCost += m_cCUICFlagSCModel.calcCost ( curSliceType, qp, (UChar*)INIT_IC_FLAG );233 curCost += m_cCUICFlagSCModel.calcCost ( curSliceType, qp, (UChar*)INIT_IC_FLAG ); 234 234 #endif 235 235 curCost += m_cCUAlfCtrlFlagSCModel.calcCost ( curSliceType, qp, (UChar*)INIT_ALF_CTRL_FLAG ); -
branches/HTM-4.1-dev2-LG/source/Lib/TLibEncoder/TEncSearch.cpp
r152 r156 721 721 m_cDistParam.pCur = piRefPos; 722 722 #if LGE_ILLUCOMP_B0045 723 m_cDistParam.bUseIC = pcPatternKey->getICFlag();723 m_cDistParam.bUseIC = pcPatternKey->getICFlag(); 724 724 #endif 725 725 uiDist = m_cDistParam.DistFunc( &m_cDistParam ); … … 4124 4124 4125 4125 #if LGE_ILLUCOMP_B0045 4126 m_cDistParam.bUseIC = pcPatternKey->getICFlag();4126 m_cDistParam.bUseIC = pcPatternKey->getICFlag(); 4127 4127 #endif 4128 4128 uiSad = m_cDistParam.DistFunc( &m_cDistParam ); … … 4483 4483 m_pcEntropyCoder->encodeMergeIndex( pcCU, 0, 0, true ); 4484 4484 #if LGE_ILLUCOMP_B0045 4485 m_pcEntropyCoder->encodeICFlag(pcCU, 0, true);4485 m_pcEntropyCoder->encodeICFlag(pcCU, 0, true); 4486 4486 #endif 4487 4487 #if HHI_INTER_VIEW_RESIDUAL_PRED … … 5851 5851 m_pcEntropyCoder->encodeMergeIndex(pcCU, 0, 0, true); 5852 5852 #if LGE_ILLUCOMP_B0045 5853 m_pcEntropyCoder->encodeICFlag(pcCU, 0, true);5853 m_pcEntropyCoder->encodeICFlag(pcCU, 0, true); 5854 5854 #endif 5855 5855 #if HHI_INTER_VIEW_RESIDUAL_PRED … … 5874 5874 m_pcEntropyCoder->encodePredInfo( pcCU, 0, true ); 5875 5875 #if LGE_ILLUCOMP_B0045 5876 m_pcEntropyCoder->encodeICFlag(pcCU, 0, true);5876 m_pcEntropyCoder->encodeICFlag(pcCU, 0, true); 5877 5877 #endif 5878 5878 #if HHI_INTER_VIEW_RESIDUAL_PRED
Note: See TracChangeset for help on using the changeset viewer.