Ignore:
Timestamp:
23 May 2013, 15:40:36 (12 years ago)
Author:
tech
Message:

Integrated 3D encoder control, camera parameters, renderer and MV fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.2-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r368 r438  
    8181  m_pcBitCounters          = NULL;
    8282  m_pcRdCosts              = NULL;
     83
    8384#if H_MV
    8485  m_ivPicLists = NULL;
     
    9596Void TEncTop::create ()
    9697{
     98
    9799#if !H_MV
    98100  // initialize global variables
     
    286288Void TEncTop::init()
    287289{
     290
    288291  // initialize SPS
    289292  xInitSPS();
     
    345348}
    346349#endif
     350
    347351Void TEncTop::deletePicBuffer()
    348352{
     
    371375 \retval  iNumEncoded         number of encoded pictures
    372376 */
     377Void TEncTop::encode(Bool flush, TComPicYuv* pcPicYuvOrg, TComList<TComPicYuv*>& rcListPicYuvRecOut, std::list<AccessUnit>& accessUnitsOut, Int& iNumEncoded
    373378#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
    380384#if H_3D
    381385  TComPic* picLastCoded = getPic( getGOPEncoder()->getPocLastCoded() );
     
    385389  }
    386390#endif
     391
    387392#if H_MV
    388393  if( gopId == 0)
     
    438443  m_iNumPicRcvd       = 0;
    439444  m_uiNumAllPicCoded += iNumEncoded;
     445
    440446#if H_MV
    441447}
    442448#endif
     449
    443450}
    444451
     
    540547  m_cSPS.setMaxCUHeight   ( g_uiMaxCUHeight     );
    541548  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                   );
    553551 
    554552  m_cSPS.setPCMLog2MinSize (m_uiPCMLog2MinSize);
     
    565563
    566564  m_cSPS.setMaxTrSize   ( 1 << m_uiQuadtreeTULog2MaxSize );
    567 #if !L0034_COMBINED_LIST_CLEANUP
     565 
    568566  m_cSPS.setUseLComb    ( m_bUseLComb           );
    569 #endif
    570567 
    571568  Int i;
     
    719716  m_cPPS.setOutputFlagPresentFlag( false );
    720717  m_cPPS.setSignHideFlag(getSignHideFlag());
    721 #if L0386_DB_METRIC
    722   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   else
    731   {
    732718  m_cPPS.setDeblockingFilterControlPresentFlag (m_DeblockingFilterControlPresent );
    733   }
    734 #else
    735   m_cPPS.setDeblockingFilterControlPresentFlag (m_DeblockingFilterControlPresent );
    736 #endif
    737719  m_cPPS.setLog2ParallelMergeLevelMinus2   (m_log2ParallelMergeLevelMinus2 );
    738720  m_cPPS.setCabacInitPresentFlag(CABAC_INIT_PRESENT_FLAG);
     
    1006988  }
    1007989#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}
    1042991
    1043992Void  TEncTop::xInitPPSforTiles()
     
    11201069  }
    11211070}
     1071
    11221072#if H_MV
    11231073Void TEncTop::printSummary( Int numAllPicCoded )
     
    11821132}
    11831133#endif
     1134
    11841135//! \}
Note: See TracChangeset for help on using the changeset viewer.