Changeset 438 in 3DVCSoftware for branches/HTM-DEV-0.2-dev/source/Lib/TLibEncoder/TEncTop.cpp
- Timestamp:
- 23 May 2013, 15:40:36 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.2-dev/source/Lib/TLibEncoder/TEncTop.cpp
r368 r438 81 81 m_pcBitCounters = NULL; 82 82 m_pcRdCosts = NULL; 83 83 84 #if H_MV 84 85 m_ivPicLists = NULL; … … 95 96 Void TEncTop::create () 96 97 { 98 97 99 #if !H_MV 98 100 // initialize global variables … … 286 288 Void TEncTop::init() 287 289 { 290 288 291 // initialize SPS 289 292 xInitSPS(); … … 345 348 } 346 349 #endif 350 347 351 Void TEncTop::deletePicBuffer() 348 352 { … … 371 375 \retval iNumEncoded number of encoded pictures 372 376 */ 377 Void TEncTop::encode(Bool flush, TComPicYuv* pcPicYuvOrg, TComList<TComPicYuv*>& rcListPicYuvRecOut, std::list<AccessUnit>& accessUnitsOut, Int& iNumEncoded 373 378 #if H_MV 374 Void TEncTop::encode(Bool flush, TComPicYuv* pcPicYuvOrg, TComList<TComPicYuv*>& rcListPicYuvRecOut, std::list<AccessUnit>& accessUnitsOut, Int& iNumEncoded , Int gopId ) 375 { 376 #else 377 Void TEncTop::encode(Bool flush, TComPicYuv* pcPicYuvOrg, TComList<TComPicYuv*>& rcListPicYuvRecOut, std::list<AccessUnit>& accessUnitsOut, Int& iNumEncoded ) 378 { 379 #endif 379 , Int gopId 380 #endif 381 ) 382 { 383 380 384 #if H_3D 381 385 TComPic* picLastCoded = getPic( getGOPEncoder()->getPocLastCoded() ); … … 385 389 } 386 390 #endif 391 387 392 #if H_MV 388 393 if( gopId == 0) … … 438 443 m_iNumPicRcvd = 0; 439 444 m_uiNumAllPicCoded += iNumEncoded; 445 440 446 #if H_MV 441 447 } 442 448 #endif 449 443 450 } 444 451 … … 540 547 m_cSPS.setMaxCUHeight ( g_uiMaxCUHeight ); 541 548 m_cSPS.setMaxCUDepth ( g_uiMaxCUDepth ); 542 543 Int minCUSize = m_cSPS.getMaxCUWidth() >> ( m_cSPS.getMaxCUDepth()-g_uiAddCUDepth ); 544 Int log2MinCUSize = 0; 545 while(minCUSize > 1) 546 { 547 minCUSize >>= 1; 548 log2MinCUSize++; 549 } 550 551 m_cSPS.setLog2MinCodingBlockSize(log2MinCUSize); 552 m_cSPS.setLog2DiffMaxMinCodingBlockSize(m_cSPS.getMaxCUDepth()-g_uiAddCUDepth); 549 m_cSPS.setMinTrDepth ( 0 ); 550 m_cSPS.setMaxTrDepth ( 1 ); 553 551 554 552 m_cSPS.setPCMLog2MinSize (m_uiPCMLog2MinSize); … … 565 563 566 564 m_cSPS.setMaxTrSize ( 1 << m_uiQuadtreeTULog2MaxSize ); 567 #if !L0034_COMBINED_LIST_CLEANUP 565 568 566 m_cSPS.setUseLComb ( m_bUseLComb ); 569 #endif570 567 571 568 Int i; … … 719 716 m_cPPS.setOutputFlagPresentFlag( false ); 720 717 m_cPPS.setSignHideFlag(getSignHideFlag()); 721 #if L0386_DB_METRIC722 if ( getDeblockingFilterMetric() )723 {724 m_cPPS.setDeblockingFilterControlPresentFlag (true);725 m_cPPS.setDeblockingFilterOverrideEnabledFlag(true);726 m_cPPS.setPicDisableDeblockingFilterFlag(false);727 m_cPPS.setDeblockingFilterBetaOffsetDiv2(0);728 m_cPPS.setDeblockingFilterTcOffsetDiv2(0);729 }730 else731 {732 718 m_cPPS.setDeblockingFilterControlPresentFlag (m_DeblockingFilterControlPresent ); 733 }734 #else735 m_cPPS.setDeblockingFilterControlPresentFlag (m_DeblockingFilterControlPresent );736 #endif737 719 m_cPPS.setLog2ParallelMergeLevelMinus2 (m_log2ParallelMergeLevelMinus2 ); 738 720 m_cPPS.setCabacInitPresentFlag(CABAC_INIT_PRESENT_FLAG); … … 1006 988 } 1007 989 #endif 1008 1009 } 1010 1011 #if L0208_SOP_DESCRIPTION_SEI 1012 Int TEncTop::getReferencePictureSetIdxForSOP(TComSlice* slice, Int POCCurr, Int GOPid ) 1013 { 1014 int rpsIdx = GOPid; 1015 1016 for(Int extraNum=m_iGOPSize; extraNum<m_extraRPSs+m_iGOPSize; extraNum++) 1017 { 1018 if(m_uiIntraPeriod > 0 && getDecodingRefreshType() > 0) 1019 { 1020 Int POCIndex = POCCurr%m_uiIntraPeriod; 1021 if(POCIndex == 0) 1022 { 1023 POCIndex = m_uiIntraPeriod; 1024 } 1025 if(POCIndex == m_GOPList[extraNum].m_POC) 1026 { 1027 rpsIdx = extraNum; 1028 } 1029 } 1030 else 1031 { 1032 if(POCCurr==m_GOPList[extraNum].m_POC) 1033 { 1034 rpsIdx = extraNum; 1035 } 1036 } 1037 } 1038 1039 return rpsIdx; 1040 } 1041 #endif 990 } 1042 991 1043 992 Void TEncTop::xInitPPSforTiles() … … 1120 1069 } 1121 1070 } 1071 1122 1072 #if H_MV 1123 1073 Void TEncTop::printSummary( Int numAllPicCoded ) … … 1182 1132 } 1183 1133 #endif 1134 1184 1135 //! \}
Note: See TracChangeset for help on using the changeset viewer.