Ignore:
Timestamp:
19 Feb 2013, 20:33:52 (12 years ago)
Author:
tech
Message:

Removed HM-6.1 related guard macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-5.1-dev0/source/App/TAppEncoder/TAppEncTop.cpp

    r292 r294  
    9797    m_acTEncTopList[iViewIdx]->setSourceWidth                  ( m_iSourceWidth );
    9898    m_acTEncTopList[iViewIdx]->setSourceHeight                 ( m_iSourceHeight );
    99 #if PIC_CROPPING
    10099    m_acTEncTopList[iViewIdx]->setCroppingMode                 ( m_croppingMode );
    101100    m_acTEncTopList[iViewIdx]->setCropLeft                     ( m_cropLeft );
     
    103102    m_acTEncTopList[iViewIdx]->setCropTop                      ( m_cropTop );
    104103    m_acTEncTopList[iViewIdx]->setCropBottom                   ( m_cropBottom );
    105 #endif
    106104    m_acTEncTopList[iViewIdx]->setFrameToBeEncoded             ( m_iFrameToBeEncoded );
    107105    m_acTEncTopList[iViewIdx]->setViewId                       ( iViewIdx );
     
    138136    m_acTEncTopList[iViewIdx]->setGopList                      ( m_GOPListsMvc[iViewIdx] );
    139137    m_acTEncTopList[iViewIdx]->setExtraRPSs                    ( m_extraRPSs[iViewIdx] );
    140 #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER
    141138    for(Int i = 0; i < MAX_TLAYER; i++)
    142139    {
     
    144141      m_acTEncTopList[iViewIdx]->setMaxDecPicBuffering         ( m_maxDecPicBuffering[iViewIdx][i], i );
    145142    }
    146 #else
    147     m_acTEncTopList[iViewIdx]->setNumReorderFrames             ( m_numReorderFrames );
    148     m_acTEncTopList[iViewIdx]->setMaxNumberOfReferencePictures ( m_maxNumberOfReferencePictures );
    149 #endif
    150143    for( UInt uiLoop = 0; uiLoop < MAX_TLAYER; ++uiLoop )
    151144    {
     
    157150    m_acTEncTopList[iViewIdx]->setPad                          ( m_aiPad );
    158151   
    159 #if H0566_TLA
    160152    m_acTEncTopList[iViewIdx]->setMaxTempLayer                 ( m_maxTempLayer[iViewIdx] );
    161 #else
    162     m_acTEncTopList[iViewIdx]->setTLayering                    ( m_bTLayering );
    163     m_acTEncTopList[iViewIdx]->setTLayerSwitchingFlag          ( m_abTLayerSwitchingFlag );
    164 #endif
    165153
    166154    m_acTEncTopList[iViewIdx]->setDisInter4x4                  ( m_bDisInter4x4);
     
    176164    m_acTEncTopList[iViewIdx]->setLoopFilterBetaOffset         ( m_loopFilterBetaOffsetDiv2  );
    177165    m_acTEncTopList[iViewIdx]->setLoopFilterTcOffset           ( m_loopFilterTcOffsetDiv2    );
    178 #if DBL_CONTROL
    179166    m_acTEncTopList[iViewIdx]->setDeblockingFilterControlPresent( m_DeblockingFilterControlPresent);
    180 #endif
    181167
    182168  //====== Motion search ========
     
    201187#if LOSSLESS_CODING
    202188    Int lowestQP;
    203 #if H0736_AVC_STYLE_QP_RANGE
    204189    lowestQP =  - ( (Int)(6*(g_uiBitDepth + g_uiBitIncrement - 8)) );
    205 #else
    206     lowestQP = 0;
    207 #endif
    208190    if ((m_iMaxDeltaQP == 0 ) && (m_aiQP[0] == lowestQP) && (m_useLossless == true))
    209191    {
     
    260242    m_acTEncTopList[iViewIdx]->setdQPs                         ( m_aidQP        );
    261243    m_acTEncTopList[iViewIdx]->setUseRDOQ                      ( m_abUseRDOQ[0] );
    262 #if !PIC_CROPPING
    263     m_acTEncTopList[iViewIdx]->setUsePAD                       ( m_bUsePAD      );
    264 #endif
    265244    m_acTEncTopList[iViewIdx]->setQuadtreeTULog2MaxSize        ( m_uiQuadtreeTULog2MaxSize );
    266245    m_acTEncTopList[iViewIdx]->setQuadtreeTULog2MinSize        ( m_uiQuadtreeTULog2MinSize );
     
    269248    m_acTEncTopList[iViewIdx]->setUseFastEnc                   ( m_bUseFastEnc  );
    270249    m_acTEncTopList[iViewIdx]->setUseEarlyCU                   ( m_bUseEarlyCU  );
    271 #if FAST_DECISION_FOR_MRG_RD_COST
    272250    m_acTEncTopList[iViewIdx]->setUseFastDecisionForMerge      ( m_useFastDecisionForMerge  );
    273 #endif
    274251    m_acTEncTopList[iViewIdx]->setUseCbfFastMode               ( m_bUseCbfFastMode  );
    275252#if HHI_INTERVIEW_SKIP
     
    304281      m_acTEncTopList[iViewIdx]->setSliceArgument ( m_iSliceArgument * ( iNumPartInCU >> ( m_iSliceGranularity << 1 ) ) );
    305282    }
    306 #if FIXED_NUMBER_OF_TILES_SLICE_MODE
    307283    if(m_iSliceMode==AD_HOC_SLICES_FIXED_NUMBER_OF_TILES_IN_SLICE)
    308284    {
    309285      m_acTEncTopList[iViewIdx]->setSliceArgument ( m_iSliceArgument );
    310286    }
    311 #endif
    312287    m_acTEncTopList[iViewIdx]->setSliceGranularity        ( m_iSliceGranularity         );
    313288    if(m_iSliceMode == 0 )
     
    327302    m_acTEncTopList[iViewIdx]->setUseIVS               ( m_bUseIVS          );
    328303#endif
    329 #if SAO_UNIT_INTERLEAVING
    330304    m_acTEncTopList[iViewIdx]->setMaxNumOffsetsPerPic (m_maxNumOffsetsPerPic);
    331305    m_acTEncTopList[iViewIdx]->setSaoInterleavingFlag (m_saoInterleavingFlag);
    332 #endif
    333306    m_acTEncTopList[iViewIdx]->setPCMInputBitDepthFlag  ( m_bPCMInputBitDepthFlag);
    334307    m_acTEncTopList[iViewIdx]->setPCMFilterDisableFlag  ( m_bPCMFilterDisableFlag);
     
    338311    m_acTEncTopList[iViewIdx]->setColumnRowInfoPresent       ( m_iColumnRowInfoPresent );
    339312    m_acTEncTopList[iViewIdx]->setUniformSpacingIdr          ( m_iUniformSpacingIdr );
    340 #if !REMOVE_TILE_DEPENDENCE
    341     m_acTEncTopList[iViewIdx]->setTileBoundaryIndependenceIdr( m_iTileBoundaryIndependenceIdr );
    342 #endif
    343313    m_acTEncTopList[iViewIdx]->setNumColumnsMinus1           ( m_iNumColumnsMinus1 );
    344314    m_acTEncTopList[iViewIdx]->setNumRowsMinus1              ( m_iNumRowsMinus1 );
     
    357327    m_acTEncTopList[iViewIdx]->setMaxTileMarkerOffset         ( m_dMaxTileMarkerOffset );
    358328    m_acTEncTopList[iViewIdx]->setTileBehaviorControlPresentFlag( m_iTileBehaviorControlPresentFlag );
    359 #if !REMOVE_TILE_DEPENDENCE
    360     if(m_iTileBoundaryIndependenceIdr == 0 || uiTilesCount == 1)
    361 #else
    362329    if(uiTilesCount == 1)
    363 #endif
    364330    {
    365331      m_bLFCrossTileBoundaryFlag = true;
     
    376342    m_acTEncTopList[iViewIdx]->setUseScalingListId           ( m_useScalingListId  );
    377343    m_acTEncTopList[iViewIdx]->setScalingListFile            ( m_scalingListFile   );
    378 #if MULTIBITS_DATA_HIDING
    379344    m_acTEncTopList[iViewIdx]->setSignHideFlag(m_signHideFlag);
    380345    m_acTEncTopList[iViewIdx]->setTSIG(m_signHidingThreshold);
    381 #endif
    382 
    383 #if LCU_SYNTAX_ALF
     346
    384347    if(uiTilesCount > 1)
    385348    {
     
    389352    m_acTEncTopList[iViewIdx]->setALFParamInSlice              ( m_bALFParamInSlice);
    390353    m_acTEncTopList[iViewIdx]->setALFPicBasedEncode            ( m_bALFPicBasedEncode);
    391 #endif
    392354
    393355    //====== Depth tools ========
     
    445407      m_acTEncDepthTopList[iViewIdx]->setSourceWidth                  ( m_iSourceWidth );
    446408      m_acTEncDepthTopList[iViewIdx]->setSourceHeight                 ( m_iSourceHeight );
    447 #if PIC_CROPPING
    448409      m_acTEncDepthTopList[iViewIdx]->setCroppingMode                 ( m_croppingMode );
    449410      m_acTEncDepthTopList[iViewIdx]->setCropLeft                     ( m_cropLeft );
     
    451412      m_acTEncDepthTopList[iViewIdx]->setCropTop                      ( m_cropTop );
    452413      m_acTEncDepthTopList[iViewIdx]->setCropBottom                   ( m_cropBottom );
    453 #endif
    454414      m_acTEncDepthTopList[iViewIdx]->setFrameToBeEncoded             ( m_iFrameToBeEncoded );
    455415      m_acTEncDepthTopList[iViewIdx]->setViewId                       ( iViewIdx );
     
    480440      m_acTEncDepthTopList[iViewIdx]->setGopList                      ( m_GOPListsMvc[iViewIdx] );
    481441      m_acTEncDepthTopList[iViewIdx]->setExtraRPSs                    ( m_extraRPSs[iViewIdx] );
    482 #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER
    483442      for(Int i = 0; i < MAX_TLAYER; i++)
    484443      {
     
    486445        m_acTEncDepthTopList[iViewIdx]->setMaxDecPicBuffering         ( m_maxDecPicBuffering[iViewIdx][i], i );
    487446      }
    488 #else
    489       m_acTEncDepthTopList[iViewIdx]->setNumReorderFrames             ( m_numReorderFrames );
    490       m_acTEncDepthTopList[iViewIdx]->setMaxNumberOfReferencePictures ( m_maxNumberOfReferencePictures );
    491 #endif
    492447      for( UInt uiLoop = 0; uiLoop < MAX_TLAYER; ++uiLoop )
    493448      {
     
    499454      m_acTEncDepthTopList[iViewIdx]->setPad                          ( m_aiPad );
    500455
    501 #if H0566_TLA
    502456      m_acTEncDepthTopList[iViewIdx]->setMaxTempLayer                 ( m_maxTempLayer[iViewIdx] );
    503 #else
    504       m_acTEncDepthTopList[iViewIdx]->setTLayering                    ( m_bTLayering );
    505       m_acTEncDepthTopList[iViewIdx]->setTLayerSwitchingFlag          ( m_abTLayerSwitchingFlag );
    506 #endif
    507457
    508458      m_acTEncDepthTopList[iViewIdx]->setDisInter4x4                  ( m_bDisInter4x4);
     
    518468      m_acTEncDepthTopList[iViewIdx]->setLoopFilterBetaOffset         ( m_loopFilterBetaOffsetDiv2  );
    519469      m_acTEncDepthTopList[iViewIdx]->setLoopFilterTcOffset           ( m_loopFilterTcOffsetDiv2    );
    520 #if DBL_CONTROL
    521470      m_acTEncDepthTopList[iViewIdx]->setDeblockingFilterControlPresent( m_DeblockingFilterControlPresent);
    522 #endif
    523471
    524472      //====== Motion search ========
     
    560508      m_acTEncDepthTopList[iViewIdx]->setdQPs                         ( m_aidQPdepth   );
    561509      m_acTEncDepthTopList[iViewIdx]->setUseRDOQ                      ( m_abUseRDOQ[1] );
    562 #if !PIC_CROPPING
    563       m_acTEncDepthTopList[iViewIdx]->setUsePAD                       ( m_bUsePAD      );
    564 #endif
    565510      m_acTEncDepthTopList[iViewIdx]->setQuadtreeTULog2MaxSize        ( m_uiQuadtreeTULog2MaxSize );
    566511      m_acTEncDepthTopList[iViewIdx]->setQuadtreeTULog2MinSize        ( m_uiQuadtreeTULog2MinSize );
     
    569514      m_acTEncDepthTopList[iViewIdx]->setUseFastEnc                   ( m_bUseFastEnc  );
    570515      m_acTEncDepthTopList[iViewIdx]->setUseEarlyCU                   ( m_bUseEarlyCU  );
    571 #if FAST_DECISION_FOR_MRG_RD_COST
    572516      m_acTEncDepthTopList[iViewIdx]->setUseFastDecisionForMerge      ( m_useFastDecisionForMerge  );
    573 #endif
    574517      m_acTEncDepthTopList[iViewIdx]->setUseCbfFastMode               ( m_bUseCbfFastMode  );
    575518#if HHI_INTERVIEW_SKIP
     
    633576        m_acTEncDepthTopList[iViewIdx]->setSliceArgument ( m_iSliceArgument * ( iNumPartInCU >> ( m_iSliceGranularity << 1 ) ) );
    634577      }
    635 #if FIXED_NUMBER_OF_TILES_SLICE_MODE
    636578      if(m_iSliceMode==AD_HOC_SLICES_FIXED_NUMBER_OF_TILES_IN_SLICE)
    637579      {
    638580        m_acTEncDepthTopList[iViewIdx]->setSliceArgument ( m_iSliceArgument );
    639581      }
    640 #endif
    641582      m_acTEncDepthTopList[iViewIdx]->setSliceGranularity        ( m_iSliceGranularity         );
    642583      if(m_iSliceMode == 0 )
     
    652593     m_acTEncDepthTopList[iViewIdx]->setUseIVS                ( m_bUseIVS );
    653594#endif
    654 #if SAO_UNIT_INTERLEAVING
    655595      m_acTEncDepthTopList[iViewIdx]->setMaxNumOffsetsPerPic (m_maxNumOffsetsPerPic);
    656596      m_acTEncDepthTopList[iViewIdx]->setSaoInterleavingFlag (m_saoInterleavingFlag);
    657 #endif
    658597      m_acTEncDepthTopList[iViewIdx]->setPCMInputBitDepthFlag  ( m_bPCMInputBitDepthFlag);
    659598      m_acTEncDepthTopList[iViewIdx]->setPCMFilterDisableFlag  ( m_bPCMFilterDisableFlag);
     
    663602      m_acTEncDepthTopList[iViewIdx]->setColumnRowInfoPresent       ( m_iColumnRowInfoPresent );
    664603      m_acTEncDepthTopList[iViewIdx]->setUniformSpacingIdr          ( m_iUniformSpacingIdr );
    665 #if !REMOVE_TILE_DEPENDENCE
    666       m_acTEncDepthTopList[iViewIdx]->setTileBoundaryIndependenceIdr( m_iTileBoundaryIndependenceIdr );
    667 #endif
    668604      m_acTEncDepthTopList[iViewIdx]->setNumColumnsMinus1           ( m_iNumColumnsMinus1 );
    669605      m_acTEncDepthTopList[iViewIdx]->setNumRowsMinus1              ( m_iNumRowsMinus1 );
     
    682618      m_acTEncDepthTopList[iViewIdx]->setMaxTileMarkerOffset         ( m_dMaxTileMarkerOffset );
    683619      m_acTEncDepthTopList[iViewIdx]->setTileBehaviorControlPresentFlag( m_iTileBehaviorControlPresentFlag );
    684 #if !REMOVE_TILE_DEPENDENCE
    685       if(m_iTileBoundaryIndependenceIdr == 0 || uiTilesCount == 1)
    686 #else
    687620      if(uiTilesCount == 1)
    688 #endif
    689621      {
    690622        m_bLFCrossTileBoundaryFlag = true;
     
    701633      m_acTEncDepthTopList[iViewIdx]->setUseScalingListId           ( m_useScalingListId  );
    702634      m_acTEncDepthTopList[iViewIdx]->setScalingListFile            ( m_scalingListFile   );
    703 #if MULTIBITS_DATA_HIDING
    704635      m_acTEncDepthTopList[iViewIdx]->setSignHideFlag(m_signHideFlag);
    705636      m_acTEncDepthTopList[iViewIdx]->setTSIG(m_signHidingThreshold);
    706 #endif
    707 
    708 #if LCU_SYNTAX_ALF
     637
    709638      if(uiTilesCount > 1)
    710639      {
     
    714643      m_acTEncDepthTopList[iViewIdx]->setALFParamInSlice              ( m_bALFParamInSlice);
    715644      m_acTEncDepthTopList[iViewIdx]->setALFPicBasedEncode            ( m_bALFPicBasedEncode);
    716 #endif
    717645
    718646  //====== Depth tools ========
     
    13251253        if (m_pchReconFileList[iViewIdx])
    13261254        {
    1327 #if PIC_CROPPING
    13281255          m_acTVideoIOYuvReconFileList[iViewIdx]->write( pcPicYuvRec, m_cropLeft, m_cropRight, m_cropTop, m_cropBottom );
    1329 #else
    1330           m_acTVideoIOYuvReconFileList[iViewIdx]->write( pcPicYuvRec, m_aiPad );
    1331 #endif
    13321256        }
    13331257      }
     
    13361260        if (m_pchDepthReconFileList[iViewIdx])
    13371261        {
    1338 #if PIC_CROPPING
    13391262          m_acTVideoIOYuvDepthReconFileList[iViewIdx]->write( pcPicYuvRec, m_cropLeft, m_cropRight, m_cropTop, m_cropBottom );
    1340 #else
    1341           m_acTVideoIOYuvDepthReconFileList[iViewIdx]->write( pcPicYuvRec, m_aiPad );
    1342 #endif
    13431263        }
    13441264      }
     
    13931313    {
    13941314    case NAL_UNIT_CODED_SLICE:
    1395 #if H0566_TLA
    13961315#if !QC_REM_IDV_B0046
    13971316    case NAL_UNIT_CODED_SLICE_IDV:
     
    13991318    case NAL_UNIT_CODED_SLICE_TLA:
    14001319    case NAL_UNIT_CODED_SLICE_CRA:
    1401 #else
    1402     case NAL_UNIT_CODED_SLICE_DATAPART_A:
    1403     case NAL_UNIT_CODED_SLICE_DATAPART_B:
    1404     case NAL_UNIT_CODED_SLICE_CDR:
    1405 #endif
    14061320    case NAL_UNIT_CODED_SLICE_IDR:
    14071321    case NAL_UNIT_SPS:
Note: See TracChangeset for help on using the changeset viewer.